• 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
Including specific headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Including specific headers


  • Subject: Including specific headers
  • From: Rick Mann <email@hidden>
  • Date: Thu, 1 Jun 2006 11:49:02 -0700

Hi. I'm just starting to use XCode (having finally been forced to abandon my beloved CodeWarrior by the Intel machines). I'm working on a Carbon application.

As I understand it, pretty much all the headers are precompiled and automatically included for all translation units. However, I really like having the most specific header explicitly included in my files (for the various symbols referenced in it). For example, if I reference a CGRect, I want to include CGGeometry.h explicitly.

I tried this:

	#include <CoreGraphics/CGGeometry.h>

but XCode complains that that file could not be found.

There are a lot of reasons for this that I'd rather not get into; I just want to know how to do it.

Futhermore, is there a way to disable the precompiled header so that I know when I fail to included a necessary header (without by chance, disabling the ability to find a symbol in the headers via the contextual menus)?

TIA,


-- Rick


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Including specific headers
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Turning off undo-past-save warning?
  • Next by Date: Re: Turning off undo-past-save warning?
  • Previous by thread: Re: ADC Reference Library is not optimized for Mac OS X?
  • Next by thread: Re: Including specific headers
  • Index(es):
    • Date
    • Thread