IBOutlet to different classes, conditional build
IBOutlet to different classes, conditional build
- Subject: IBOutlet to different classes, conditional build
- From: Trygve Inda <email@hidden>
- Date: Wed, 23 Feb 2011 19:07:17 +0000
- Thread-topic: IBOutlet to different classes, conditional build
I have one project that outputs two binaries - one for the App Store (an
app) and one for my own website version (a prefpane).
All the classes are the same except for two:
MyPrefPaneDelegate
MyAppDelegate
These are each in their respective apps.
How can I build my shared classes so I can do:
#ifdef RETAIL
IBOutlet MyPrefPaneDelegate delegate
#endif
#ifdef APPSTORE
IBOutlet MyAppDelegate delegate
#endif
It obviously compiles ok. But I have two nibs... One for the AppStore and
one for the Retail version. My CommonClass is instantiated in both nibs, but
in one case I need an outlet to point to a MyPrefPaneDelegate and in the
other it needs to point to a MyAppDelegate
Ideas?
Thanks.
_______________________________________________
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