Re: Using resources from Cocoa app
Re: Using resources from Cocoa app
- Subject: Re: Using resources from Cocoa app
- From: Magnus Strand <email@hidden>
- Date: Mon, 07 Feb 2005 12:57:20 +0100
Hi Daniel,
Thanks for the info!
After a long time testing I found it was becase I had an application name
with a Swedish character in it [AppName].rsrc wasn't loaded.
I changed app name and now APIs like GetIndString works fine!
Magnus
daniel wrote:
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
--
*Magnus Strand *
Systemutvecklare | System Developer, MSc
*Teknik i Media* | Södra Förstadsgatan 2 | 211 43 Malmö | Tel +46 40 601
57 00 | Fax +46 40 601 57 99
Direkt +46 40 601 57 16 | Mobil +46 704 20 57 16 | email@hidden
| www.tim.se
/This message contains information that may be privileged or
confidential and is the property of Teknik i Media. / /It is intended
only for the person to whom it is addressed. If you receive this message
in error, please notify the sender immediately and delete all copies of
this message. /
_______________________________________________
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