writeToFile:ofType:originalFile:saveOperation: on Tiger
writeToFile:ofType:originalFile:saveOperation: on Tiger
- Subject: writeToFile:ofType:originalFile:saveOperation: on Tiger
- From: Hamish Allan <email@hidden>
- Date: Sat, 4 Jun 2005 23:43:47 +0100
Hi,
I have an application which can load and save various types of audio
file. I am overriding writeToFile:ofType:originalFile:saveOperation:.
On Panther, the document type string passed to this function used to
be the same as whatever was originally passed to readFromFile:ofType:
(e.g., "MP3 Audio File"). On Tiger, the document type seems always to
be the application's native CFBundleType, regardless of what document
type was loaded.
How can I achieve the old behaviour again?
Rather unhelpfully, the Apple documentation for
writeToFile:ofType:originalFile:saveOperation says that the function
has been deprecated in favour of... itself:
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSDocument.html#//apple_ref/doc/
uid/20000008-BBCIGAHH
Thanks,
Hamish
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden