FROM : Michael Crawford
DATE : Mon Dec 13 19:24:27 2004
Oops. I sent this to the wrong address.
-Michael
Reply from 'wrong address':
Don't tell me, tell the list.
On Dec 13, 2004, at 9:57 AM, Michael Crawford wrote:
> Perhaps you can catch at the top of the C++ code and then convert to
> Objective-C compatible exceptions by re-throwing from an Objective C++
> module.
>
> -Michael
>
> On Dec 13, 2004, at 8:40 AM, John Stiles wrote:
>
>> This isn't possible. As a general rule of thumb, if you didn't
>> compile it yourself, you probably can't throw through it.
>> Try catching all throws at as low a level as possible without going
>> back into AppKit, like this:
>>
>> Our c++ code - throw occurs here.
>> Our c++ code
>> Our c++ code - try catching here
>> App Kit / Foundation
>> App Kit / Foundation
>> App Kit / Foundation
>> App Kit / Foundation
>> Our handler
>> App Kit / Foundation
>> App Kit / Foundation
>> Root of the stack
>>
>> And then post some sort of notification so the run-loop can know
>> what's going on.
>>
>>
>> On Dec 13, 2004, at 8:09 AM, Benjohn wrote:
>>
>>> Please could someone tell me if this is not possible (c++ exceptions
>>> can't be thrown through app kit / foundation methods, for eg).
>>> Alternatively, could someone confirm if it's definitely possible,
>>> and we must have something set up wrong.
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Cocoa-dev mailing list (<email_removed>)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/cocoa-dev/
>> <email_removed>
>>
>> This email sent to <email_removed>
DATE : Mon Dec 13 19:24:27 2004
Oops. I sent this to the wrong address.
-Michael
Reply from 'wrong address':
Don't tell me, tell the list.
On Dec 13, 2004, at 9:57 AM, Michael Crawford wrote:
> Perhaps you can catch at the top of the C++ code and then convert to
> Objective-C compatible exceptions by re-throwing from an Objective C++
> module.
>
> -Michael
>
> On Dec 13, 2004, at 8:40 AM, John Stiles wrote:
>
>> This isn't possible. As a general rule of thumb, if you didn't
>> compile it yourself, you probably can't throw through it.
>> Try catching all throws at as low a level as possible without going
>> back into AppKit, like this:
>>
>> Our c++ code - throw occurs here.
>> Our c++ code
>> Our c++ code - try catching here
>> App Kit / Foundation
>> App Kit / Foundation
>> App Kit / Foundation
>> App Kit / Foundation
>> Our handler
>> App Kit / Foundation
>> App Kit / Foundation
>> Root of the stack
>>
>> And then post some sort of notification so the run-loop can know
>> what's going on.
>>
>>
>> On Dec 13, 2004, at 8:09 AM, Benjohn wrote:
>>
>>> Please could someone tell me if this is not possible (c++ exceptions
>>> can't be thrown through app kit / foundation methods, for eg).
>>> Alternatively, could someone confirm if it's definitely possible,
>>> and we must have something set up wrong.
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Cocoa-dev mailing list (<email_removed>)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/cocoa-dev/
>> <email_removed>
>>
>> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Benjohn | Dec 13, 17:09 | |
| John Stiles | Dec 13, 17:40 | |
| Michael Crawford | Dec 13, 19:24 | |
| Michael Crawford | Dec 13, 19:24 | |
| Benjohn | Dec 13, 19:53 | |
| John Stiles | Dec 13, 20:38 | |
| Keith Ray | Dec 13, 20:39 | |
| Martin | Dec 14, 01:29 | |
| Benjohn | Dec 14, 14:34 |






Cocoa mail archive

