Linking problems with NSViewController

Posted by jay on Stack Overflow See other posts from Stack Overflow or by jay
Published on 2011-01-30T07:15:48Z Indexed on 2011/01/30 7:25 UTC
Read the original article Hit count: 186

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?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa