Re: Using Objective-C object in C++ source
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