• 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: Global variable for whole application.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Global variable for whole application. (From: "Jay" <email@hidden>)
 >Re: Global variable for whole application. (From: John Stiles <email@hidden>)

  • Prev by Date: Re: Global variable for whole application.
  • Next by Date: Re: PDFOutline memory management
  • Previous by thread: Re: Global variable for whole application.
  • Next by thread: Re: Global variable for whole application.
  • Index(es):
    • Date
    • Thread