Linking problems with NSViewController
- by jay
I've created a class using XCode3.2.1 and I want to make it inherit from NSViewController.
#import < Cocoa/Cocoa.h
@interface myCustomView : NSViewController {}
@end
I get the error that it can't find the class header file, but I've linked in the Cocoa libraries.
Undefined
symbols:
"_OBJC_CLASS_$_NSViewController", referenced from:
_OBJC_CLASS_$_myCustomView in myCustomView.o
I have other classes in my project that are inherit Cocoa classes without a problem. I don't have any errors if I make it inherit from classes that are part of Framework (eg NSObject, NSArray).
Any suggestions?