> On Sep 15, 2021, at 11:21 AM, Tor Arne Vestbø <[email protected]> wrote: > > >> On 14 Sep 2021, at 16:33, Matt Jacobson via Cocoa-dev >> <[email protected] <mailto:[email protected]>> wrote: >> >> By default, when an NSWindow is `-close`d (which can only happen once in its >> lifetime), > > Interesting. If the NSWindow is retained elsewhere, can it not be ordered in > again? Appreciate any details you can provide :)
I was wrong about this detail. The window can definitely be ordered in again, and any subsequent `-close` does *not* issue a `-release`, even if the window `isReleasedWhenClosed`. (How confusing.) So ignore the parenthetical part, but do `setReleasedWhenClosed:NO` your windows. Matt _______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
