On Apr 29, 2005, at 8:18 PM, maclists at additional dot com wrote:
How do you read resources in data fork resource files?
-Thomas
Personal web page:
<http://homepage.mac.com/thomasareed/>
My shareware:
<http://www.bitjuggler.com/>
Free REALbasic code:
<http://www.bitjuggler.com/extra/>
There are 10 kinds of people in the world -- those who understand binary
numbers and those who don't.
You can read these files using declares to Resource Manager calls. I
don't think it can be done using REALbasic's ResourceFork class without
either a plugin or copying the data fork into a resource fork.
You'll find info on the Resource Manager at:
<http://developer.apple.com/documentation/Carbon/Reference/
Resource_Manager/>
Note that the vital function call is likely to be FSOpenResourceFile,
which allows you to specify which fork to open. It does require an
FSRef, though, so you'll need to use some other declares to get an
FSRef. You can find a ready-made FSRef class on my website (see the
URL in my sig). This is something I should probably think about adding
to it at some point.
-Thomas
Personal web page:
<http://homepage.mac.com/thomasareed/>
My shareware:
<http://www.bitjuggler.com/>
Free REALbasic code:
<http://www.bitjuggler.com/extra/>
There are 10 kinds of people in the world -- those who understand binary
numbers and those who don't.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|