Re: Main window disappears. Sometimes.
Re: Main window disappears. Sometimes.
- Subject: Re: Main window disappears. Sometimes.
- From: "Hamish Allan" <email@hidden>
- Date: Tue, 3 Jun 2008 18:22:56 +0100
On Tue, Jun 3, 2008 at 6:02 PM, Andy Lee <email@hidden> wrote:
> On Jun 2, 2008, at 1:50 PM, Bill Bumgarner wrote:
>
>> If your window is sometimes disappearing under GC -- is sometimes being
>> collected prior to when you think it should be -- that means that the
>> collector doesn't believe that the window object is being used by your
>> application. To the collector, being visible doesn't count as "in use".
>
> I've been assuming that NSApplication keeps a strong reference to all
> windows in its window list, but now that I think of it there's no particular
> reason to assume that. Is it not the case? I just want to correct my
> mental model if I've been mis-assuming.
I'd assumed the same without realising it. I predict that this is
going to become a FAQ on this list!
Hamish
_______________________________________________
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