| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Oct 31, 2004, at 12:24 AM, Ole Voss wrote:
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.
Where are they defined in main.m?
If they are outside of the scope of main() function, then they will be visible to the rest of the app.
Have you declared the variables in a .h file somewhere? Are you seeing compiler warnings or link errors?
| References: | |
| >Variable Scope (again) (From: Ole Voss <email@hidden>) | |
| >Re: Variable Scope (again) (From: "b.bum" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.