Re: Global variable for whole application.
Re: Global variable for whole application.
- Subject: Re: Global variable for whole application.
- From: spike grobstein <email@hidden>
- Date: Tue, 17 Apr 2007 18:09:00 -0700
in one of the header files of your program, put a #define statement and make sure you #import that file in any other file that uses that constant.
ie:
#define PI 3.14159265358979 /* the value of pi! */
#define PRESIDENT "dubya"
#define VERSION 1.0
hope that helps.
...spike
On Tuesday, April 17, 2007, at 09:02PM, "John Stiles" <email@hidden> wrote:
>The same way as with any regular C program.
>
>On Apr 17, 2007, at 5:55 AM, Jay wrote:
>
>> This is another simple questions, I have no idea in which way to
>> define some global vaiables(constants) for the whole application,
>> could someone give me a hint? Many thanks.
>>
>> regards,
>> Jay
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> 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:
>> 40blizzard.com
>>
>> This email sent to email@hidden
>
>_______________________________________________
>
>Cocoa-dev mailing list (email@hidden)
>
>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
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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