• 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: Clark Cox <email@hidden>
  • Date: Thu, 14 May 2009 20:41:31 -0700

On Thu, May 14, 2009 at 12:36 PM, Michael Crawford <email@hidden> wrote:
>> 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.

In 32-bit, Mac code, yes, that is the case. However, in 64-bit Mac
code and iPhone code, C++ exceptions and Objective-C exceptions are
one-in-the-same.

>
> 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.

--
Clark S. Cox III
email@hidden
 _______________________________________________
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: Michael Crawford <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>)
 >Re: Using Objective-C object in C++ source (From: Michael Crawford <email@hidden>)

  • Prev by Date: Re: iPhone Platform Compiler Symbol?
  • Next by Date: Re: iPhone Platform Compiler Symbol?
  • 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