• 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: Cocoa UI In Carbon App Issues.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Cocoa UI In Carbon App Issues. (From: "Vijay Malhan" <email@hidden>)
 >Re: Cocoa UI In Carbon App Issues. (From: Kevin Grant <email@hidden>)
 >Re: Cocoa UI In Carbon App Issues. (From: "Vijay Malhan" <email@hidden>)
 >Re: Cocoa UI In Carbon App Issues. (From: Kevin Grant <email@hidden>)

  • Prev by Date: Re: Cocoa UI In Carbon App Issues.
  • Next by Date: Re: File's Owner
  • Previous by thread: Re: Cocoa UI In Carbon App Issues.
  • Next by thread: alternate pattern for object initializers
  • Index(es):
    • Date
    • Thread