• 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: Controlling targets and headers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling targets and headers?


  • Subject: Re: Controlling targets and headers?
  • From: "Mark A. Stratman" <email@hidden>
  • Date: Tue, 15 Jun 2004 23:26:54 -0500

I'm sure there are lots of ways to do it. The way I'd choose would be to add specific defines to one or each type of build.

Click on the project name in the "groups and files" outline view on the left of xcode, pull up the info panel. There's a drop-down in the "styles" tab that should have deployment and development in it.
For each of these you can set additional compile flags.
You could add something like -DDEV_TARGET to the development build.
Then in your code just do:
#ifdef DEV_TARGET
// ... etc.
#endif

hth.
- Mark

On Jun 15, 2004, at 9:15 PM, April Gendill wrote:

Is there a preprocessor directive (or some other way) that would allow me to determine the target being built and include a specific header for one target or a different one for another target?

Thanks
April.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Controlling targets and headers? (From: April Gendill <email@hidden>)

  • Prev by Date: Re: Scrolling List of Thumbnails?
  • Next by Date: Using icons in menu
  • Previous by thread: Re: Controlling targets and headers?
  • Next by thread: Scrolling List of Thumbnails?
  • Index(es):
    • Date
    • Thread