• 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
Why does NSDocument not care about saving Viewer-role document types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why does NSDocument not care about saving Viewer-role document types


  • Subject: Why does NSDocument not care about saving Viewer-role document types
  • From: Markus Spoettl <email@hidden>
  • Date: Sun, 10 Jun 2012 19:14:35 +0200

I have an NSDocument based app that supports two file types, one as an Editor (for the new app version's documents) role and one as a Viewer (for old app version documents). Both are based on the same document class which reads both but saves only the new version format.

When -saveDocument: gets called on an old-version document, the framework completely ignores that by role definition (Viewer), it can't save the format and calls -saveToURL:ofType:::: with the old URL (wrong file extension) and old type (can't save that).

I find it a little odd that something like this hasn't been sorted out long ago, so naturally I'm wondering once more today, what am I doing wrong?

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Why does NSDocument not care about saving Viewer-role document types
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: NSSavePanel runModal isn't working in sandbox?
  • Next by Date: NSDocument -canAsynchronouslyWriteToURL::: never called
  • Previous by thread: Re: WWDC registration on Sunday
  • Next by thread: Re: Why does NSDocument not care about saving Viewer-role document types
  • Index(es):
    • Date
    • Thread