Re: Cocoa UI In Carbon App Issues.
Re: Cocoa UI In Carbon App Issues.
- Subject: Re: Cocoa UI In Carbon App Issues.
- From: "Vijay Malhan" <email@hidden>
- Date: Mon, 26 May 2008 13:14:39 +0530
On Mon, May 26, 2008 at 1:08 PM, Kevin Grant <email@hidden> wrote:
> At least in my case, I use Option+Close in my Carbon+Cocoa app and I
>>> don't see a crash. (This closes all Cocoa windows and leaves the
>>> Carbon ones alone.)
>>>
>>
>> Do option+Close on Carbon Window, with Cocoa window's open.
>>
>> This is very much reproducible. Try to reproduce it using CocoaInCarbon
>> sample. The application doesn't crash immediately. Do an option+close on
>> Carbon window, the Cocoa window becomes unresponsive (dead) - It may or may
>> not crash later on. In my app it crashes.
>>
>
>
> Just now I was able to reproduce a dead window in my app (the About box),
> if a Carbon window is option-closed. The other Cocoa windows do close
> correctly.
>
> Hopefully this is something Apple can patch into a software update.
> Though since I'm trying to target even 10.3, I may have to live with this
> on older systems. :/
It's not been patched so far. I had filed this as bug in Tiger. The
workaround for this would be: Listening to Carbon Event Handler for Close
All Windows and Close your Cocoa window in the event handler method (Get a
windowRef from your NSWindow to register the events). This work pretty much
for me.
- Vijay
>
>
> Kevin G.
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden