• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Main window disappears. Sometimes.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Main window disappears. Sometimes. (From: Francis Perea <email@hidden>)
 >Re: Main window disappears. Sometimes. (From: Graham Cox <email@hidden>)
 >Re: Main window disappears. Sometimes. (From: Francis Perea <email@hidden>)
 >Re: Main window disappears. Sometimes. (From: Michael Vannorsdel <email@hidden>)
 >Re: Main window disappears. Sometimes. (From: Bill Bumgarner <email@hidden>)
 >Re: Main window disappears. Sometimes. (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: The KVO Race
  • Next by Date: Re: Main window disappears. Sometimes.
  • Previous by thread: Re: Main window disappears. Sometimes.
  • Next by thread: Re: Main window disappears. Sometimes.
  • Index(es):
    • Date
    • Thread