Re: Adding HFS file type to a file
Re: Adding HFS file type to a file
- Subject: Re: Adding HFS file type to a file
- From: Charles Srstka <email@hidden>
- Date: Thu, 25 Sep 2003 02:02:50 -0500
Have a look at the docs for NSFileManager. It can do what you need.
Charles
On Wednesday, September 24, 2003, at 06:47 PM, Tom Gray wrote:
I have created a method which exports the data from my NSDocument
subclass as either rtf or text. I have used the OS X convention of
appending an extension to the file name to indicate the file's type. I
would like to add the HFS file type and creator to a file I am creating
with NSData and NSString writeToFile:atomically: method. I can do this
for the document with fileAttributesToWriteToFile:ofType:saveOperation:
but I don't know how to do this for the exported file.
Thanks!
Tom Gray
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.