Re: Main window disappears. Sometimes.
Re: Main window disappears. Sometimes.
- Subject: Re: Main window disappears. Sometimes.
- From: Andy Lee <email@hidden>
- Date: Tue, 3 Jun 2008 13:02:33 -0400
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.
--Andy
_______________________________________________
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