Re: Cocoa-dev Digest, Vol 1, Issue 409
Re: Cocoa-dev Digest, Vol 1, Issue 409
- Subject: Re: Cocoa-dev Digest, Vol 1, Issue 409
- From: Benjohn <email@hidden>
- Date: Tue, 14 Dec 2004 13:38:23 +0000
On 14 Dec 2004, at 04:28, email@hidden wrote:
Message: 9
Date: Mon, 13 Dec 2004 16:29:00 -0800
From: "Martin" <email@hidden>
Subject: re: c++ exceptions causing abort
To: <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="ISO-8859-1"
Please could someone tell me if this is not possible (c++ exceptions
can't be thrown through app kit / foundation methods, for eg).
Unfortunately this is the case for NSExceptions as well. See a thread
here:
http://www.cocoabuilder.com/archive/message/2004/8/11/114250
So converting c++ exceptions to NSExceptions is not going to help you.
~Martin
Hi, from reading the thread, the gist I picked up is that you can send
an NSException through the AppKit, it's just that the AppKit will
handle some exceptions itself. That's ok with me, I'd expect it to
handle its own exceptions really. Hopefully it wont have a go at mine.
Message: 16
Date: Mon, 13 Dec 2004 11:39:19 -0800
From: Keith Ray <email@hidden>
Subject: re: c++ exceptions causing abort
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII
You could write code to translate C++ exceptions into Cocoa exceptions
and vice versa, and someone already has done a lot of work for this...
see "Membrane Library" at
http://www.umbar.com/membrane/
That looks to be a promising lead. It certainly seems to provide some
of what we need. It still seems to require special work at every
transition from objective-c land to c++ land (as far as I can see), and
I'd like to find a solution that doesn't require so much to be
remembered by the programmer (I'm pretty forgetful).
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