Re: Why [NSApplication _deallocHardCore:] crash in my Safari Plug In
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