On Sep 22, 2016, at 12:34 , Kyle Sluder <k...@ksluder.com> wrote:
> 
> -close asks the window’s delegate (via -windowShouldClose:) if it should
> close. If the window is owned by a window controller that’s associated
> with a document, the document will also get a chance to weigh in via
> -shouldCloseWindowController:…. It will also send
> NSWindowWillCloseNotification.
> 
> -orderOut: just hides the window (removes it from the window list). You
> can always order it back in again later.

Yes, but ignore for a moment the “shouldClose…” interaction, and assume the 
window is NOT set to release on close. What *else* does “close” do vs. 
“orderOut”?

The example app mentioned in this thread demonstrates that “close” has some 
other effect beyond what “orderOut” does. In particular, a “single”-mode 
storyboard segue re-uses an ordered-out window, but not a closed one.

_______________________________________________

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

Reply via email to