Re: NSError in NSDocument readFromURL
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