Re: presentError:
Re: presentError:
- Subject: Re: presentError:
- From: Quincey Morris <email@hidden>
- Date: Sat, 19 Apr 2008 18:18:10 -0700
On Apr 19, 2008, at 15:36, Ali Ozer wrote:
(3) According to the NSResponder class reference, a responder
passes presentError to the next error responder and:
"if there is no next responder, it passes the error object to
NSApp, which displays a document-modal error alert"
I had hoped this meant that NSApp cleverly displayed the error as a
sheet on the document window and waited for it to be dismissed. In
fact, if you send presentError: to a NSDocument you get an
application-modal alert.
Actually, the comment for presentError: says "Present an error alert
to the user, as an application-modal panel"; it's
presentError:modalForWindow:delegate:didPresentSelector:contextInfo:
that puts up a doc-modal panel.
Indeed, it says both those things. Parsing it a bit more pedantically,
though, it actually says that NSResponder's implementation is
application-modal, and NSApplication's is document-modal. (And at
least in the Xcode documentation set, there's no documentation for
presentError: in the NSApplication class reference.)
But this was all wishful thinking on my part. It's apparently just a
small typo.
_______________________________________________
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