• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Where to include header files - relates to last question on variable scope
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Where to include header files - relates to last question on variable scope
      • From: Ole Voß <email@hidden>
References: 
 >Re: FW: Where to include header files - relates to last question on variable scope (From: Ole Voß <email@hidden>)

  • Prev by Date: Re: FW: Where to include header files - relates to last question on variable scope
  • Next by Date: NSMatrix selection bindings bug?
  • Previous by thread: Re: FW: Where to include header files - relates to last question on variable scope
  • Next by thread: Re: Where to include header files - relates to last question on variable scope
  • Index(es):
    • Date
    • Thread