Re: stop new header from being added to copy files?
Re: stop new header from being added to copy files?
- Subject: Re: stop new header from being added to copy files?
- From: Shawn Erickson <email@hidden>
- Date: Wed, 02 Aug 2006 08:50:11 -0700
On Aug 2, 2006, at 8:42 AM, James W. Walker wrote:
On Aug 1, 2006, at 9:05 PM, Chris Espinosa wrote:
Your headers do not need to be in your target unless you want them
processed somehow at build time. Your sources can find your
headers just fine, and Find in Project, Class Browser, indexing,
etc. will all work if the headers are simply #included by target
sources and/or are in the project—they don't have to be in the
target.
Now, that's news to me. Of course, if I choose "New File..." to
create a C++ source and header, Xcode adds both to the project.
Maybe that's what gave me the impression that headers were supposed
to be in the project.
No, wait, here's where I got the impression that the headers were
supposed to be in the project. In "Porting CodeWarrior Projects to
Xcode", it says "Xcode also supports recursive search paths;
however, it is generally recommended that your project include
explicit references to its header files. For example, when you add
a .c file to your Xcode project, you don’t typically add a search
path for the associated header file. Instead, you drag the actual
header file into a group in the Groups & Files list in the project
to add a reference to the header."
That sentence isn't saying you need to add the header file to a
_target_ in the project just to the project itself (which is what
Chris was saying). Review the following to better understand the
concept of targets, etc.
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/
XcodeUserGuide/Contents/Resources/en.lproj/01_01_pr_projects/
chapter_4_section_2.html#//apple_ref/doc/uid/TP40002663-BABCIFCJ>
-Shawn _______________________________________________
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