Re: help with resource conversion
Re: help with resource conversion
- Subject: Re: help with resource conversion
- From: Ondra Cada <email@hidden>
- Date: Mon, 22 Oct 2001 16:07:02 +0100
socko,
>
>>>>> socko (s) wrote at Mon, 22 Oct 2001 06:17:18 -0700 (PDT):
s> does anyone know how i could translate the following OS<=9 resource info
s> into a Cocoa resource?
s>
s> #define SystemSevenOrLater 1
s> #include <Types.r>
s> #include <SysTypes.r>
s> #include "resource.h"
s>
s> type 'Xmpl' as 'STR ';
s> resource 'Xmpl' (0, purgeable) {
s> "Full Example 1.0v1 ) FileMaker, Inc. (written by David McKee)"
s> };
Cocoa does not use resources in the Classic sense at all. For Cocoa,
resources are files, placed inside the application wrapper; those files can
be of any type. Somewhat specialized file types are NIBs which can contain
any object, but mostly are used for GUI ones only, and .strings tables, which
are used for localizable strings.
So far as I understand, what you need here is a string (right?). If so, the
best way to do so is to use a string table; see the NSBundle
localizedString... API.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc