• 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: Accessing Classic Mac Resources from Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing Classic Mac Resources from Cocoa


  • Subject: Re: Accessing Classic Mac Resources from Cocoa
  • From: Charles Srstka <email@hidden>
  • Date: Fri, 22 Feb 2002 19:58:14 -0600

There's a function somewhere called FSPathMakeRef that will get you an FSRef from a path. From there, you can get an FSSpec from the FSRef somehow, I think.

On Friday, February 22, 2002, at 07:38 PM, John Pattenden wrote:

I need to open a resource file and read some resources from within my cocoa code, I can get the resource file into the bundle and it looks like project builder puts the resources into the data fork. I thought the resource file would be opened along with the cocoa code, but this seems not to be the case, so I need to open the file and then get a resource. in Carbon it would be as simple as callling FspOpenResFile and then GetResource .. I can make these call from with my cocoa app, but I'm not sure how to get and FsSpec.. Is there a better way to do this (I do need to keep my resource file the way it is)

????


John Pattenden
ScreenTime Media

http://www.screentime.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Accessing Classic Mac Resources from Cocoa
      • From: Finlay Dobbie <email@hidden>
References: 
 >Accessing Classic Mac Resources from Cocoa (From: John Pattenden <email@hidden>)

  • Prev by Date: Accessing Classic Mac Resources from Cocoa
  • Next by Date: Re: Cocoa newbie - document-based Cocoa app with OpenGL
  • Previous by thread: Accessing Classic Mac Resources from Cocoa
  • Next by thread: Re: Accessing Classic Mac Resources from Cocoa
  • Index(es):
    • Date
    • Thread