Re: Accessing Classic Mac Resources from Cocoa
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.