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: Kevin Ballard <email@hidden>
- Date: Mon, 1 Nov 2004 03:37:55 -0500
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?
--
Kevin Ballard
email@hidden
http://www.tildesoft.com
http://kevin.sb.org
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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