• 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
Re: Active Target determination in code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Active Target determination in code


  • Subject: Re: Active Target determination in code
  • From: Chris Espinosa <email@hidden>
  • Date: Mon, 29 Sep 2008 14:53:27 -0700


On Sep 29, 2008, at 2:41 PM, Kevin Kachikian wrote:

How do you determine the active target in a C file so that you can compile certain code or not depending upon the Active Target?

Just add a MY_TARGET_NAME entry to the Preprocessor Macros Not Used In Precompiled Headers build setting for that target. Then in the code, #ifdef MY_TARGET_NAME around code for that target.


Chris
_______________________________________________
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


References: 
 >Active Target determination in code (From: Kevin Kachikian <email@hidden>)

  • Prev by Date: Active Target determination in code
  • Next by Date: Re: Multiple Application Organization
  • Previous by thread: Active Target determination in code
  • Next by thread: Error on 3.1 doesn't happen on 3.0 (not iPhone)
  • Index(es):
    • Date
    • Thread