Re: Write a prefs file
Re: Write a prefs file
- Subject: Re: Write a prefs file
- From: Philip Aker <email@hidden>
- Date: Thu, 30 May 2002 20:24:16 -0700
Hello Matthew,
My question was about .rsrc (data fork files). I got the
impression he was talking about new _types_ of resources
understood by the system, Rez, and DeRez:
[1] There are improved replacements for several common types
of resource (e.g., .strings files instead of STR# resources,
nibs vs. DLOG/DITL/etc.) Developers not obliged to use them,
but they have their advantages.
So I was thinking I could do something like:
Handle strs = Get1Resource( 'stri', strID );
Handle wnib = GetNibResource( kNibTypeWindow, nibID );
But I guess not. The reason why I'd get my hopes up is because
comparing launch times and window opening times of a Carbon app
vs an AppleScript Studio app reveals that the Cocoa-ized studio
app is more than sluggish in these respects.
Thanks anyway,
Philip
On Thursday, May 30, 2002, at 06:46 PM, Matthew Stuckwisch wrote:
SVP, where are these new items documented? I'd just love to
have some new rez trix.
NIBs are heavily documented in Cocoa documentation, they're the
interface files for Cocoa apps. .strings are strings separated
by semicolons, commonly found in localization.strings, which is
used for translating applications to various languages, for
example, a line from my localization of Fire.app for Spanish
goes as follows:
"%@ has sent you a message." = "%@ te ha enviado un mensaje.";
Where the first string is the English and the second it's
translated finished with a semicolon. This is the basics of a
strings file, I'm sure there's more, but I have no idea other
uses of it, since I haven't seen it used for anything other
than localization of applications.
My ultimate guess for all new things you can find information
in the Cocoa documentation.
Matthew Stuckwisch
[AIM/MSN]{GuifaSwimmer} | [Yahoo!]{SapphireTree} | [ICQ]{137477701}
[IRC]{guifa / G}(esperNET / irc.massinova.com)
Philip Aker
http://www.aker.ca
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.