Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .pch not working in XCode 2.2?



I can see your point. But as far as Mac OS X
development alone is concerned, I found this behavour
to be a great luxury. The only imported files in the
.pch file were Cocoa.h, Carbon.h, QuickTime.h, and a
few others. It was nice to not have to include them in
every single header file. Oh well...


--- j o a r <email@hidden> wrote:

> 
> 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
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: .pch not working in XCode 2.2? (From: j o a r <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.