• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
writeToFile:ofType:originalFile:saveOperation: on Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: writeToFile:ofType:originalFile:saveOperation: on Tiger
      • From: Michael Babin <email@hidden>
  • Prev by Date: Quit Application
  • Next by Date: Re: Quit Application
  • Previous by thread: Re: Quit Application
  • Next by thread: Re: writeToFile:ofType:originalFile:saveOperation: on Tiger
  • Index(es):
    • Date
    • Thread