Global variables?
Global variables?
- Subject: Global variables?
- From: Matt Reagan <email@hidden>
- Date: Tue, 27 Dec 2005 02:55:57 -0800
I understand that in OOP it's generally said to be a bad idea to use
'global' variables outside the normal object-oriented methodology...
but can anyone please advise me on the best way to make a very small
array of integers available to my entire application? I have a main
controller object that had this:
@public
int myIntArray[10];
But despite the public command, I can't seem to access it from another
class. I made sure to include the controller's header file where it's
needed.
What's the easiest way to make some integers available to the whole application?
Thank you all~
_______________________________________________
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