Re: Why would a view be asked to draw after its window has been ordered out?
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