• 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: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In


  • Subject: Re: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In
  • From: Peter Ammon <email@hidden>
  • Date: Wed, 5 Mar 2008 17:37:38 -0800


On Mar 5, 2008, at 4:52 PM, Joe Jones wrote:

Hi all,

I have an NPAPI based plug in and I am trying to use a Cocoa window to create a full screen window that the plug in can use when it wants to take over the screen. All works as expected, The window displays and goes away as required and all is joy. Until you quit the application.


Hi Joe,

Windows by default release themselves when closed, and when an app quits, every window receives a close message. This will cause a crash at application quit if your retains and releases do not account for that.

Make sure that, if you do not want the window to be released on application quit, you call [window setReleasedWhenClosed:NO].

-Peter

_______________________________________________

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


  • Follow-Ups:
    • Re: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In
      • From: Joe Jones <email@hidden>
References: 
 >Why [NSApplication _deallocHardCore:] crash in my Safari Plug In (From: Joe Jones <email@hidden>)

  • Prev by Date: Re: Localise between different versions of English
  • Next by Date: Re: Deferring a selector until later, but before painting
  • Previous by thread: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In
  • Next by thread: Re: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In
  • Index(es):
    • Date
    • Thread