Re: Where to include header files - relates to last question on variable scope
Re: Where to include header files - relates to last question on variable scope
- Subject: Re: Where to include header files - relates to last question on variable scope
- From: Ole Voß <email@hidden>
- Date: Mon, 01 Nov 2004 13:09:58 +0100
Thanks for that tip - I won't be using this scheme, but I'll investigate
it anyway just to learn and get a grip - is there a document somewhere
that describes the compilation progress in detail? Don't go looking for
it, but if you happen to have a good URL - I'll be happy to get a copy ;-)
Ole.
You probably have a precompiled prefix header file somewhere, most
likely in your Other Sources group. If you stick the include there
then it will suddenly become available for all other files. That's
probably what you're looking for.
However, by doing this any change made to this header file will cause
the prefix header to have to be re-compiled, so don't go sticking
everything in there.
On Nov 1, 2004, at 3:07 AM, Ole Voß wrote:
But if I need the same class in my AppController (taking care of my
menu and stuff) and again in the PreferenceController (taking care of
the preference pane) - then I have to include the header file twice.
I thought that there would be a single file where I could include all
required header files so that I DONT have to do that.
'main.m' is obviously not the place to do that in, and so far nobody
has given me a hint (besides your mentioning the build-phase) -
Should I delve deeper into the build-phase or should I concern myself
with the nitty gritty of how a compiler works when all I want to know
is where to put global variables?
_______________________________________________
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