• 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: Getting build flag setting in code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting build flag setting in code


  • Subject: Re: Getting build flag setting in code
  • From: Scott Tooker <email@hidden>
  • Date: Mon, 06 Aug 2007 09:42:32 -0700

That should be "Preprocessor Definitions". 

That's what I get for posting too early in the morning.

Scott

On Aug 6, 2007, at 9:35 AM, Scott Tooker <email@hidden> wrote:

You should use the "Preprocessor Macros" build setting for this. Just enter 'test' as the value and we will do the rest (like adding the -D).

Don't use the Other C Flags or Other C++ Flags setting for this. Those build settings are meant as a last resort when Xcode doesn't provide a specific build setting to cover what you need.

Scott

On Aug 6, 2007, at 2:13 AM, parag vibhute <email@hidden> wrote:

Hi,

I have developed a Cocoa application.
My requirement is to pass an argument while building an application. Based on that argument's value, certain part of my code will be compiled otherwise it will be ignored (like #defined).
I thought one of way is to add a new build setting ( u can say its like variable) in build pane of xcode & to get that setting's value in code so that based on that value, certain part of my code will be compiled otherwise ignored. Am I in right direction? If yes, how to retrieve that variable's value in code?

Is there any any other way to accomplish this task?

Thanks,
Palav

--
There are many things in your life that will catch your eye but only a few will catch your heart....pursue those'

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: 
 >Getting build flag setting in code (From: "parag vibhute" <email@hidden>)
 >Re: Getting build flag setting in code (From: Scott Tooker <email@hidden>)

  • Prev by Date: Re: Getting build flag setting in code
  • Next by Date: Re: Scripts, Errors, and xcodebuild
  • Previous by thread: Re: Getting build flag setting in code
  • Next by thread: Re: Xcode-users Digest, Vol 4, Issue 379
  • Index(es):
    • Date
    • Thread