• 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: Creating a Framework: Adding Header Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a Framework: Adding Header Files


  • Subject: Re: Creating a Framework: Adding Header Files
  • From: Chris Hanson <email@hidden>
  • Date: Wed, 5 Oct 2005 18:54:58 -0700

On Oct 5, 2005, at 5:32 PM, David Piasecki wrote:
Maybe I'm just not reading this anywhere, but I'm having a difficult time finding how to add header files to my framework. I created a new palette, which by default includes a new framework. I included two new classes (.h and .mm files) in the project alongside the filename "Project.h". After building, the default "Project.h" file for the palette gets included in the Headers directory for the framework, but my added files are not included. The framework and palette work great. I can use them in other apps, but I can't #import my new header files from the framework because they aren't in there.

You need to make sure that your new headers are actually members of your framework target, and then set their role to "public" or "private" rather than "project." (Private headers show up in your framework's PrivateHeaders directory, while public headers show up in its Headers directory.)


If you're using the default layout in Xcode, you should be able to highlight your target's icon in the Groups & Files pane at left and see all of the members of the target in the Detail pane at right, along with the roles of headers as pop-ups.

  -- Chris

_______________________________________________
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: 
 >Creating a Framework: Adding Header Files (From: David Piasecki <email@hidden>)

  • Prev by Date: Re: CoreData - NSManagedObjectContext notifications - Save vs DidChange ?
  • Next by Date: Re: Delegating time to another process
  • Previous by thread: Creating a Framework: Adding Header Files
  • Next by thread: Authorization panel
  • Index(es):
    • Date
    • Thread