Re: Triggering a segue from code
Re: Triggering a segue from code
- Subject: Re: Triggering a segue from code
- From: Quincey Morris <email@hidden>
- Date: Thu, 22 Sep 2016 12:47:42 -0700
- Feedback-id: 167118m:167118agrif8a:167118sTzTUUHNlm:SMTPCORP
On Sep 22, 2016, at 12:34 , Kyle Sluder <email@hidden> 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 (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