Subclassing a view class from an external framework
Subclassing a view class from an external framework
- Subject: Subclassing a view class from an external framework
- From: Mark Gallegly <email@hidden>
- Date: Tue, 13 Oct 2009 09:59:29 -0700
I have an NSView subclass defined in a framework called FrameworkView. The
FrameworkView class has a property like so:
@property (nonatomic, retain) IBOutlet NSView* someView;
This framework has the necessary code in it to work as an Interface Builder
plugin, and everything seems to work fine in Interface Builder.
However, if I subclass the FrameworkView in a separate project that contains
my .app target, with say a class called MyFrameworkViewSubclass, I get a
warning like this when building the .xib file containing
MyFrameworkViewSubclass:
The 'someView' outlet of 'MyFrameworkViewSubclass' is connected to 'Custom
View' but 'someView' is no longer defined on MyFrameworkViewSubclass.
Now, within IB the outlet shows up and I am able to make the connection, and
when the app runs everything works fine, but for some reason XCode spits out
this warning. Does anybody know what is going on here and how to get rid of
the warning?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden