• 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: Using resources from Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using resources from Cocoa app


  • Subject: Re: Using resources from Cocoa app
  • From: daniel <email@hidden>
  • Date: Fri, 4 Feb 2005 23:45:35 -0800

Yes, you can use Carbon resource manager APIs from a Cocoa app. You will have to locate and open the resource file using bundle APIs (unless you name it [AppName].rsrc).

Are you sure your copied resource fork is 0 bytes, or are you just looking at it with ls or something from the command line that doesn't show the rsrc fork by default?

Just for kicks, why don't you convert the resource-fork based file to a data-fork based resource file. It will be more portable that way, and you'll be able to easily tell whether it's 0 bytes or not, check it into cvs repositories without concern, etc. If you don't know how to do this - search the archives.

Daniel

On Feb 4, 2005, at 1:54 AM, Magnus Strand wrote:

Hi!

I have an old resource file (made with ResEdit) I want to access from my Cocoa app.
I have included the resource file in my Xcode target, but in the
app package outputted I get a file resources.rsrc with 0 bytes!
Probably becuase the resource data is stored in the resource fork.


Can I use API like GetIndString from my Cocoa app to access a STR# resource?

Regards,
Magnus Strand
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com


This email sent to email@hidden

_______________________________________________ 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
  • Follow-Ups:
    • Re: Using resources from Cocoa app
      • From: Magnus Strand <email@hidden>
References: 
 >Using resources from Cocoa app (From: Magnus Strand <email@hidden>)

  • Prev by Date: Newbie wallowing in documentation
  • Next by Date: Re: checking if an object's instance exists.
  • Previous by thread: Using resources from Cocoa app
  • Next by thread: Re: Using resources from Cocoa app
  • Index(es):
    • Date
    • Thread