Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 1, Issue 409




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.