• 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: rsrc file with PICT items - copied to Package as zero K file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rsrc file with PICT items - copied to Package as zero K file


  • Subject: Re: rsrc file with PICT items - copied to Package as zero K file
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 22 Feb 2005 15:48:37 -0800

On Feb 22, 2005, at 3:40 PM, Matt Neuburg wrote:

On Mon, 21 Feb 2005 23:15:34 -0600, "Eppel (ETSC)" <email@hidden> said:

I am using Xcode 1.5 and Mac OS X 10.3.8 and have been having an issue with

rsrc files. I have 10 PICT resources in a ResEdit rsrc file added to my

Xcode project and when I open the nib file in Interface Builder, the PICT

items all show under the images tab and in the windows where I have the PICT

controls set to the resource ID of the corresponding PICT.   This part is

working as expected.


But when I build my application (carbon app with nib files) then the PICT

items do not show up. I have the rsrc file added to the Resources directory

of the Xcode project.  When I open the build package and look in the

Contents/Resources there is my rsrc file but the file size is "Zero" instead

of the 380K of pictures for the original ResEdit file.


cp does not copy resource forks. What I've done in an a similar situation is

to add a shell script build phase that calls CpMac instead. m.


There was a bug in Xcode 1.2 where the Resources (not ResourceMgr Resources) build phase did not copy resource files, but that is fixed in 1.5.  But it brings up an interesting point:


if your resources are simply in a group called "Resources" in your project, that doesn't mean a thing.  They have to be part of the target, and specifically, in a ResourceManager Resources build phase.  If your target doesn't have one, add one with the Project > New Build Phase menu item, then drag all your target resources into it.


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

References: 
 >Re: rsrc file with PICT items - copied to Package as zero K file (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: rsrc file with PICT items - copied to Package as zero K file
  • Next by Date: .h file not found? XCode 1.5
  • Previous by thread: Re: rsrc file with PICT items - copied to Package as zero K file
  • Next by thread: Error and Run preferences
  • Index(es):
    • Date
    • Thread