我使用 XCode3.2.1 创建了一个类,我想让它继承自 NSViewController (或任何其他 AppKit 实体)。
#import < Cocoa/Cocoa.h>
@interface myCustomView : NSViewController {}
@end
我已经在 Cocoa 库中链接了,但是我得到了找不到类头文件的错误
Undefined symbols: "_OBJC_CLASS_$_NSViewController", referenced from:
_OBJC_CLASS_$_myCustomView in myCustomView.o
我的项目中有其他类可以毫无问题地继承 Cocoa 类。如果我让它继承自属于 Framework 或 CoreData 的类(例如 NSObject、NSArray、NSEntityDescription),我没有任何错误。
有什么建议么?