Skip navigation.
 
mlRe: Novice Question....
FROM : David Remahl
DATE : Tue Dec 31 19:07:15 2002

On Tuesday, December 31, 2002, at 06:51 PM, Steve Thompson wrote:

> I regularly use an application that stores its preferences file in my
> /Library directory in the format of a file with TEXT resources. The
> name of the TEXT resource is the preference (for example
> "SCREEN_DEPTH") and the value of the resource is the setting for the
> preference (for example "8")
>
> I'd like to knock together a little app that allows me to query and
> perhaps change these resources. I can do it in OS 9.x using
> AppleScript, FaceSpan and any one of a multitude of OS 9-only OSAX
> that edit resources.
>
> I have this wonderful development environment at my disposal is OS X
> (10.2.3 and Dec 2002 Dev Tools) but I can't find a way in AppleScript
> or Cocoa to look at resource forks. Could one of you kind people point
> me in the right direction? eg NSQueryResource or "It can't be done..."
>
> Thanks,
> Steve


It can be done, but you will have to use Carbon to do it.

There are a few third party Cocoa wrappers for the Resource Manager.
Notably, there is one in one of the Omni-kits, and there is one here:

<http://homepage.mac.com/nathan_day/pages/source.html>

/ Regards, David Remahl
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlNovice Question.... Steve Thompson Dec 31, 18:51
mlRe: Novice Question.... David Remahl Dec 31, 19:07