• 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
Re: NSError in NSDocument readFromURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSError in NSDocument readFromURL


  • Subject: Re: NSError in NSDocument readFromURL
  • From: "I. Savant" <email@hidden>
  • Date: Mon, 13 Jul 2009 13:02:29 -0400

On Jul 13, 2009, at 12:52 PM, Quincey Morris wrote:

As the OP demonstrated (and I didn't realize this before he did), NSDocumentController apparently *will* display the failure reason ("The document X could not be opened. B."). So you have a way of customizing the alert, so long as you don't mind the canned part talking about "documents" being "opened". If you don't like it, you have the display-your-own-alert-and-return-cancel alternative.

You're absolutely right. Using NSLocalizedFailureReasonErrorKey instead of NSLocalizedDescriptionKey "does the right thing".


  Thanks for the clarification. I learn something new every day. :-)

--
I.S.




_______________________________________________

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


References: 
 >NSError in NSDocument readFromURL (From: Konrad Windszus <email@hidden>)
 >Re: NSError in NSDocument readFromURL (From: Quincey Morris <email@hidden>)
 >Re: NSError in NSDocument readFromURL (From: Konrad Windszus <email@hidden>)
 >Re: NSError in NSDocument readFromURL (From: "I. Savant" <email@hidden>)
 >Re: NSError in NSDocument readFromURL (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Mac10.6 bug? NSAppleScript can't work
  • Next by Date: Re: Printing a View
  • Previous by thread: Re: NSError in NSDocument readFromURL
  • Next by thread: Re: NSError in NSDocument readFromURL
  • Index(es):
    • Date
    • Thread