Re: Where to put global variables in Cocoa?
Re: Where to put global variables in Cocoa?
- Subject: Re: Where to put global variables in Cocoa?
- From: Jesus De Meyer <email@hidden>
- Date: Thu, 6 Mar 2003 10:45:30 +0100
Where is the right place to put my global variables in Cocoa?
What I would do is simply make a header, call it global.h. In there
write your global variables like this:
extern char *myGlobalString;
extern int myGlobalInt;
etc.
Then, to use this variables just include (or import) the header like
so: #import "global.h"
Cheers,
Jesus
__________________
Jesus De Meyer
e dot software [CEO]
www.edot-software.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.