Re: Window closes on its own
Re: Window closes on its own
- Subject: Re: Window closes on its own
- From: Alexander Reichstadt <email@hidden>
- Date: Mon, 05 Sep 2011 22:25:19 +0200
I can't due to using the garbage collection.
Am 05.09.2011 um 20:47 schrieb Jens Alfke:
>
> On Sep 5, 2011, at 12:08 AM, Alexander Reichstadt wrote:
>
>> the window created through the following code closes on its own after one second. Why?
>
> I’m guessing there’s an extra -release call (or insufficient -retains) and the window’s getting dealloced after the autorelease pool drains.
>
> Try setting a breakpoint in the -dealloc method, adding a generic -dealloc if you don’t already have one.
>
> —Jens
_______________________________________________
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