• 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: Objective-C++ and exceptions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C++ and exceptions


  • Subject: Re: Objective-C++ and exceptions
  • From: "Jonathan 'Wolf' Rentzsch" <email@hidden>
  • Date: Sun, 14 Nov 2004 22:23:15 -0600

Mark Alldritt, email@hidden, wrote:
>Has anyone released any macros/classes for mapping Objective-C exceptions
>into C++ exceptions and back again?

Yes. The two big public options are my NSXException and Murret+Pontious'
Membrane:

<http://cvs.sourceforge.net/viewcvs.py/redshed/NSXException/> (code
[NSXException.h])
<http://rentzsch.com/nsxexception/doxygen/> (docs)
<http://rentzsch.com/links/objcppExceptionHandlingWithMembrane>
<http://www.helpfultiger.com/helpfultiger/2004/03/knowing_your_bo.html>
<http://umbar.com/membrane/>

Membrane is more advanced than my solution, but it's more complicated and
drags in boost. I think mine may leak memory, and also makes a bad
assumption that the C++ exceptions all inherit from std::exception.

| Jonathan 'Wolf' Rentzsch   http://rentzsch.com
| Red Shed Software           http://redshed.net
|     "better" necessarily means "different"

 _______________________________________________
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

  • Prev by Date: Re: Recording with mic
  • Next by Date: How to embed a popup menu in an NSTextField
  • Previous by thread: Objective-C++ and exceptions
  • Next by thread: How to embed a popup menu in an NSTextField
  • Index(es):
    • Date
    • Thread