• 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: presentError:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >presentError: (From: Quincey Morris <email@hidden>)
 >Re: presentError: (From: Ali Ozer <email@hidden>)

  • Prev by Date: Re: Implementing a Slightly Unusual NSTableView
  • Next by Date: Re: drawRect: called twice for NSView subclass.
  • Previous by thread: Re: presentError:
  • Next by thread: Getting the correct objectValue in NSCell in NSTableView
  • Index(es):
    • Date
    • Thread