Event loop
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