• 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: .pch not working in XCode 2.2?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .pch not working in XCode 2.2?


  • Subject: Re: .pch not working in XCode 2.2?
  • From: j o a r <email@hidden>
  • Date: Thu, 9 Feb 2006 08:01:50 +0100


On 9 feb 2006, at 05.08, Ian was here wrote:

This is kind of a strange issue that I discovered when
creating a few projects in XCode 2.2. The precompiled
header file doesn't seem to function. Before, I didn't
need to #import <Cocoa/Cocoa.h> into my files because
it was already in my application's .pch file. Now that
doesn't seem to be the case anymore. I just get lots
of error messages and have to manually #import
<Cocoa/Cocoa.h> to each header file.

If what you say is true, I think I like this change in behaviour - or at least for the option to have this behaviour. In my opinion I think that it make sense to make a separation between [1] an implicitly imported header on the one hand, and [2] precompiled headers on the other.
We compile our projects for a large number of OS platforms where not all of them supports PCH. We regularly get / got into troubles where some developer failed to remember to include a required header in a source file because it was implicitly included via the PCH file on Mac OS X. As a consequence, the builds would start failing on the other platforms.


I'm absolutely no authority on this topic, so take it with a grain of salt!

j o a r


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: .pch not working in XCode 2.2?
      • From: Ian was here <email@hidden>
References: 
 >.pch not working in XCode 2.2? (From: Ian was here <email@hidden>)

  • Prev by Date: NSTreeController problems
  • Next by Date: Using Zlib for i386 code
  • Previous by thread: .pch not working in XCode 2.2?
  • Next by thread: Re: .pch not working in XCode 2.2?
  • Index(es):
    • Date
    • Thread