• 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: header files in application bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: header files in application bundle


  • Subject: Re: header files in application bundle
  • From: glenn andreas <email@hidden>
  • Date: Sun, 6 Mar 2005 09:55:55 -0600


On Mar 6, 2005, at 9:38 AM, Sven Hoffmann wrote:

I just created a cocoa app from the default cocoa app project in xcode,
added one controller.h and one controller.c file, and in the built
application bundle I find the header:
myapp.app/Contents/Resources/controller.h.

I then looked into some other apps I built and found they have headers
there as well.
There are others though, that don't. ???
Maybe I have some build setting set that causes this to happen?

Sven


This is "odd" behavior in XCode - by default (well, and by that I mean "always as near as I can tell") when you create a new class, it adds both files to the project - you'll see that both files have their little check box marked. That seems reasonable, except that XCode handles "all entities in the project other than source code that haven't been explicitly changed are put in the 'Bundle Resources' phase of the target" (which puts them in the Resources folder, even though they aren't in the "Resources" group).


You can either explicitly go to the Bundle Resources phase of the target and remove them from the list of items in that phase, or, you can just uncheck the target checkbox (which is easy to do if you remember it right away - when you create the files, the source file and the header file are both selected and in the list).


Glenn Andreas                      email@hidden  <http://www.gandreas.com/> oh my! Mad, Bad, and Dangerous to Know

_______________________________________________
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


References: 
 >RE: header files in application bundle (From: "Sven Hoffmann" <email@hidden>)

  • Prev by Date: Re: header files in application bundle
  • Next by Date: Re: header files in application bundle
  • Previous by thread: Re: header files in application bundle
  • Next by thread: Re: header files in application bundle
  • Index(es):
    • Date
    • Thread