Re: .pch not working in XCode 2.2?
Re: .pch not working in XCode 2.2?
- Subject: Re: .pch not working in XCode 2.2?
- From: Ian was here <email@hidden>
- Date: Thu, 9 Feb 2006 23:28:02 -0800 (PST)
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:
This email sent to email@hidden