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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to