On Jun 29, 5:58 pm, David Phillip Oster <os...@[EMAIL PROTECTED]
> wrote:
> In article
> <baef4568-56b2-4f1a-a155-272b984c4...@[EMAIL PROTECTED]
>,
>
> Korchkidu <korchk...@[EMAIL PROTECTED]
> wrote:
> > Hi,
>
> > I would like to access the build settings from inside my code. For
> > example, I would like to access the CURRENT_PROJECT_VERSION setting so
> > that when I compile my program, I know which version of my program it
> > is (and eventually build a string containing the version number of the
> > program).
>
> The following works for me:
>
> In the "Preprocessing" section of the project's info, I added, under
> 'Preprocessing Macros'
>
> SDKROOT="\"$SDKROOT\""
>
> Test: this program uses SDKROOT:
>
> #im****t <Foundation/Foundation.h>
>
> int main (int argc, const char * argv[]) {
> NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
>
> // insert code here...
> NSLog(@[EMAIL PROTECTED]
"Hello, World! %s", SDKROOT);
> [pool release];
> return 0;
>
> }
HI,
thanks for your answer. I am not sure to understand everything but I
will have a look to your solution and let you know if I have problems.
Thanks again.
K.


|