Re: Framework won't link (was: WHy is Xcode such a PITA?)
Re: Framework won't link (was: WHy is Xcode such a PITA?)
- Subject: Re: Framework won't link (was: WHy is Xcode such a PITA?)
- From: Rick Mann <email@hidden>
- Date: Sat, 15 Dec 2007 23:09:30 -0800
On Dec 15, 2007, at 10:59 PM, Scott Tooker wrote:
From the limited info you have provided, it appears you are trying
to explicitly include a sub-framework's header file.
I bet you have the following in one of your project source files:
#import <CoreGraphics/CGContext.h>
If so, no cookie for you. Unlike Mac OS 9 where you included
individual header files, with Mac OS X you should include the
appropriate framework (or umbrella framework) header, in this case:
#import <ApplicationServices/ApplicationServices.h>
In addition, you should place any such includes in your prefix
header (and only in the prefix header) so it gets precompiled,
resulting in a much faster build.
That's particularly annoying, if it can ONLY be there, because this is
code that I use in multiple projects. If I can put the appropriate
header in the file that actually needs it, then I can include just
that file in my project. Otherwise, I have to not only include the
file, but then be sure to include any headers it needs in a separate
include.
_______________________________________________
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