Re: Global Variables
Re: Global Variables
- Subject: Re: Global Variables
- From: Rakka <email@hidden>
- Date: Tue, 22 Mar 2005 16:00:09 +1100
On Mar 22, 2005, at 3:35 PM, Adam wrote:
What is the best way to make a variable globally accessible across all
of my obj-c classes?
Make a global header, then use (or anything else):
extern int myInt;
Import header into the class(es) you want to use it in, then:
int myInt = 38492;
You can use it in any other classes after that (remember to import the
global header file)
Regards,
Rakka
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden