• 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: Using Objective-C object in C++ source
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Objective-C object in C++ source


  • Subject: Re: Using Objective-C object in C++ source
  • From: Michael Crawford <email@hidden>
  • Date: Thu, 14 May 2009 12:36:47 -0700

> The issues are primarily in the realm of having C++ instance members
> in Objective-C classes and exceptions.

How does one deal with exceptions?

The only way I can see is to maintain a strict boundary between each
language.  When one is going from C+ to Objective-C, one would have to
catch all the C++ exceptions and throw some kind of equivalent
NSException.

Is that the case?  It seems like a real PITA.

I've seen lots of sample code that mixes Objective-C and C++, but I
can't say that I've seen any that deals with the two different kinds
of exceptions.

Mike
--
Michael David Crawford
mdcrawford at gmail dot com

   GoingWare's Bag of Programming Tricks
      http://www.goingware.com/tips/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Using Objective-C object in C++ source
      • From: Clark Cox <email@hidden>
References: 
 >Using Objective-C object in C++ source (From: "K. Chen" <email@hidden>)
 >Re: Using Objective-C object in C++ source (From: Dave Carrigan <email@hidden>)
 >Re: Using Objective-C object in C++ source (From: Andreas Grosam <email@hidden>)
 >Re: Using Objective-C object in C++ source (From: "K. Chen" <email@hidden>)
 >Re: Using Objective-C object in C++ source (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Using Objective-C object in C++ source
  • Next by Date: Re: Converting .plist during the build process
  • Previous by thread: Re: Using Objective-C object in C++ source
  • Next by thread: Re: Using Objective-C object in C++ source
  • Index(es):
    • Date
    • Thread