Variable Scope (again)
Variable Scope (again)
- Subject: Variable Scope (again)
- From: Ole Voss <email@hidden>
- Date: Sun, 31 Oct 2004 08:24:22 +0100
I'm just wondering why variables defined in 'main.m' don't appear to my
'AppController' instantiated in 'MainMenu.nib'
I thought that if I defined a variable in 'main.m' it should be visible to
all my classes - irrelevant of where they get instantiated. But this doesn't
seem to be the case.
It's just a theoretical question since I'm going to use a singleton to solve
my problem (I hope) - but still the answer to this might be interesting for
future bugs I could encounter ;-)
Thank you!
Ole.
_______________________________________________
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