• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Triggering a segue from code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Triggering a segue from code
      • From: Kyle Sluder <email@hidden>
References: 
 >Triggering a segue from code (From: "email@hidden" <email@hidden>)
 >Re: Triggering a segue from code (From: Quincey Morris <email@hidden>)
 >Re: Triggering a segue from code (From: "email@hidden" <email@hidden>)
 >Re: Triggering a segue from code (From: Quincey Morris <email@hidden>)
 >Re: Triggering a segue from code (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Re: Passing param by reference then using within block throws exception
  • Next by Date: Re: Passing param by reference then using within block throws exception
  • Previous by thread: Re: Triggering a segue from code
  • Next by thread: Re: Triggering a segue from code
  • Index(es):
    • Date
    • Thread