Yeah, did that. Even took the step of not calling close or ever manually releasing the window. It doesn't matter. At the time where my "close" occurs the retain count is 2 so how it is going away I don't know. I never get called on dealloc nor does the window get called on autorelease which I would assume would be happening if it was being put into an AR pool.
On 3/5/08 5:37 PM, "Peter Ammon" <[EMAIL PROTECTED]> wrote: 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]