IB references from static library
IB references from static library
- Subject: IB references from static library
- From: Quincey Morris <email@hidden>
- Date: Sun, 2 Nov 2008 22:11:19 -0800
I just moved some source files from an application into a static Cocoa library that's a separate Xcode project (mostly so that the files can be shared with other applications), and this works fine except for classes that are referenced only from XIB files.
For example, I have a MyButton class:
@implementation MyButton - (BOOL) acceptsFirstMouse: (NSEvent*) event { return NO; } @end
(for a button that won't accept clicks when the application is inactive). At runtime I get error messages "Unknown class MyButton in Interface Builder file."
Some other classes moved to the library have outlets, and they now also result in warnings in IB that the outlets no longer exist.
I'm not sure if this is one issue or two, but I'd be grateful if anyone could shed some light on what's going wrong, and what the correct solution is.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden