2

I have an old (OS9) file containing a resource fork with "CODE" resources and i would like to read that from Obj-C. I use something like:

NSFileHandle *codeFile=[NSFileHandle fileHandleForReadingAtPath:myPath];

but see only the data fork! Is there any simple solution for that?

I also tried to separate the resource fork with

"CpMac -r myFile newFile" 

but get only the old file back?

1 Answer 1

4

Opening the path

yourFile/..namedfork/rsrc

gives you access to the resource fork of "yourFile". Alternatively, you can use getxattr(), because the resource fork is stored as an extended attribute named "com.apple.ResourceFork".

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.