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

Re: catching uncaught exceptions


  • Subject: Re: catching uncaught exceptions
  • From: Prachi Gauriar <email@hidden>
  • Date: Mon, 9 Feb 2004 21:23:49 -0600

On Feb 9, 2004, at 12:51 PM, matt neuburg wrote:

I want to override Cocoa's policy of failing silently with a note to the
Console when there is an exception, so I have created an NSApplication
subclass and implemented reportException: to call NSRunAlertPanel and tell
the user.

But it isn't working. When I deliberately generate an out-of-bounds range
error in my code, it winds up in the Console log and there is no alert
panel:


Why not use NSSetUncaughtExceptionHandler(), and use it to call NSApplication's reportException:?

I haven't tested this, but it seems like it should work.

-Prachi
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Printing without NSPrintPanel
  • Next by Date: [NSTextView sizeToFit] messing up frame.origin, and not resizing correctly
  • Previous by thread: Re: catching uncaught exceptions
  • Next by thread: Re: catching uncaught exceptions
  • Index(es):
    • Date
    • Thread