Re: IBOutlet to different classes, conditional build
Re: IBOutlet to different classes, conditional build
- Subject: Re: IBOutlet to different classes, conditional build
- From: Graham Cox <email@hidden>
- Date: Thu, 24 Feb 2011 17:47:29 +1100
On 24/02/2011, at 5:29 PM, Trygve Inda wrote:
> How can I properly set this up?
I'm not sure if it's the best way, but you could just make MyObjectClass *always* an NSObject subclass, and let it act as an intermediary or controller for the real class. In other words, its interface is fixed in stone, but its internal implementation will change according to the conditional compilation. In other words it *has a* connection to the app delegate or pref pane controller which is established at runtime and then it passes on messages to that object, rather than trying to actually be that object.
--Graham
_______________________________________________
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