Re: Resource file merge (Modified by Tim Conkling)
Re: Resource file merge (Modified by Tim Conkling)
- Subject: Re: Resource file merge (Modified by Tim Conkling)
- From: Chris Espinosa <email@hidden>
- Date: Tue, 15 Mar 2005 17:20:22 -0800
On Mar 15, 2005, at 11:23 AM, Tim Conkling wrote: I'm converting a CFM Carbon app (developed with CodeWarrior) to a Mach-O app (with Xcode). I understand that resource forks are a no-no, and that the acceptable way to add resources to a project is to use a data-fork based resource file that's stored in the Resources directory of the app bundle (please correct me if I'm wrong though!)
Two questions: 1) The only reason I'm using resources is because there are a few bevel buttons in the app that use pictures. In Interface Builder, I can't find a way to have a button use anything other than a resource file to get its picture content from (I can set the bevel button's content to PICT id, cicn id, or Icon Suite id). I'd really like to have my pictures be stored individually in Resources/, but I'm not sure how I can use IB to assign non-resource-based pictures to a bevel button. (I'd like to avoid manually reading in picture data and SetControlData'ing it to the buttons!)
2) If I must use resources, how do I have Xcode merge the contents of several resource files into one? I tried creating a ".r" file that #include'd the resource files I wanted combined together, but the file wasn't compiled -- instead, all that happened was that the .r file was put directly into Resources/.
Your target may not have a ResourceManager Resources build phase (most don't, by default). Add one using the NEw Build Phase menu in the Project menu.
The drag your .r files out of the Resources build phase (wherein they're copied to your bundle) to the ResourceManager Resources buiild phase (which will Rez them and merge the results together into one resource file that's automatically opened when your application runs).
Chris
|
_______________________________________________
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