FROM : Ole Voß
DATE : Sun Oct 31 23:14:44 2004
> 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.
Yes, it was declared outside the scope of main.m
>
> Have you declared the variables in a .h file somewhere? Are you
> seeing compiler warnings or link errors?
No link errors.
I will follow up on the suggestions made by Chris & Finnlay - I hope
that will get me somewhere...
Thank you,
Ole.
DATE : Sun Oct 31 23:14:44 2004
> 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.
Yes, it was declared outside the scope of main.m
>
> Have you declared the variables in a .h file somewhere? Are you
> seeing compiler warnings or link errors?
No link errors.
I will follow up on the suggestions made by Chris & Finnlay - I hope
that will get me somewhere...
Thank you,
Ole.
| Related mails | Author | Date |
|---|---|---|
| Ole Voss | Oct 31, 08:24 | |
| b.bum | Oct 31, 20:32 | |
| Ole Voß | Oct 31, 23:14 |






Cocoa mail archive

