> On Dec 13, 2018, at 1:26 PM, James Walker <jam...@frameforge3d.com> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com