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

Event loop


  • Subject: Event loop
  • From: Benjohn <email@hidden>
  • Date: Thu, 2 Dec 2004 15:27:44 +0000


Hi,

We're developing with objective c++. We would like to provide a base level c++ exception handler (for otherwise unhandled exceptions) to constrain exceptions within NSApplication's event loop. We need to prevent exceptions breaching the event loop; doing so would effectively terminate our application.

To implement this, I will subclass NSApplication, and override sendAction:to:from:. The replacement method will call the base class method in a try catch block. Any exceptions that are caught will be packaged up and sent of to some error reporting system.

I'm going to give this a go (not forgetting to change the principle class in my info.plist). Can anyone suggest a nicer approach though? This all feels a bit closer to the spinning knives than I'm comfortable with :)

Cheers,
	Benjohn

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Event loop
      • From: Benjohn <email@hidden>
  • Prev by Date: Re: NSTimer won't fire.
  • Next by Date: Re: NSTimer won't fire.
  • Previous by thread: NSSegmentedControl, Modal Window problems and Sheets
  • Next by thread: Re: Event loop
  • Index(es):
    • Date
    • Thread