• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
IBOutlet to different classes, conditional build
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: IBOutlet to different classes, conditional build
      • From: WT <email@hidden>
  • Prev by Date: Re: Help Mixing Objective-C & Objective-C++
  • Next by Date: Re: Help Mixing Objective-C & Objective-C++
  • Previous by thread: Re: Help Mixing Objective-C & Objective-C++
  • Next by thread: Re: IBOutlet to different classes, conditional build
  • Index(es):
    • Date
    • Thread