我点击了现代化项目,然后我得到了一些编译错误。(我确实拍了快照)
错误是:无法在@interface 或@protocol 中声明变量
这是复制和粘贴格式的代码。
#import <Cocoa/Cocoa.h>
#import "AJHBezierUtils.h"
@interface NSBezierPath (WBBezierPath)
NSBezierPath *flattenPath;
NSPointArray points;
int numPoints;
+(NSBezierPath*)roundedPath:(NSRect)aRect radius2:(int)rad2;
-(NSPoint ) getLinePoints:(NSPoint )p1 p2:(NSPoint)p2 withDistance:(int )pointDistance;
- (NSPoint *)pointsFromPathWithDistance:(int)distance numberOfPoints:(int *)numberOfPoints;
- (float)distanceBetweenPoint:(NSPoint)a andPoint:(NSPoint)b;
- (int)numberOfPoints;