• 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: Why would a view be asked to draw after its window has been ordered out?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why would a view be asked to draw after its window has been ordered out?


  • Subject: Re: Why would a view be asked to draw after its window has been ordered out?
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 13 Dec 2018 16:28:25 -0800


> On Dec 13, 2018, at 1:26 PM, James Walker <email@hidden> wrote:
>
> The view was using a C++ object that had been destroyed during closing of my
> document.  I'm afraid that if I start playing with the order of destruction,
> I'm likely to break something else.

An NSDocument won’t be dealloced until all of its windows have been closed and
released.
It’s been many years since I used NSDocument, but it sounds like you shouldn’t
be deleting this C++ object when the document is being closed; wait until it’s
dealloced.

—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

References: 
 >Why would a view be asked to draw after its window has been ordered out? (From: James Walker <email@hidden>)
 >Re: Why would a view be asked to draw after its window has been ordered out? (From: Matt Jacobson <email@hidden>)
 >Re: Why would a view be asked to draw after its window has been ordered out? (From: James Walker <email@hidden>)

  • Prev by Date: Re: NSString drawAtPoint in Mojave
  • Next by Date: Re: Why would a view be asked to draw after its window has been ordered out?
  • Previous by thread: Re: Why would a view be asked to draw after its window has been ordered out?
  • Next by thread: Re: Why would a view be asked to draw after its window has been ordered out?
  • Index(es):
    • Date
    • Thread