【发布时间】:2012-06-13 21:53:53
【问题描述】:
我单击了 Modernize Project,然后出现了一些编译错误。 (我确实拍了快照)
错误是:不能在@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;
【问题讨论】:
标签: objective-c xcode macos xcode4 xcode4.2