• 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
Segue from a toolbar item and prepareForSegue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Segue from a toolbar item and prepareForSegue


  • Subject: Segue from a toolbar item and prepareForSegue
  • From: Rick Mann <email@hidden>
  • Date: Sat, 18 Oct 2014 23:15:59 -0700

(NB: This is a pure-Swift app, but I don't think that matters here).

OS X Storyboard app.

I set up a toolbar item with a sheet segue to a view controller. Works fine, but I can't find an appropriate place to put the prepareForSegue() call. The toolbar lives in the window, so I subclassed NSWindowController, but it doesn't get the call. I tried the content view controller, but it doesn't get called, either.

This severely limits what a storyboard is good for, since I can't set anything on the target, or otherwise communicate back to the caller.

Am I missing something?

--
Rick Mann
email@hidden



_______________________________________________

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: Segue from a toolbar item and prepareForSegue
      • From: Rick Mann <email@hidden>
  • Prev by Date: Re: bundleForClass in Swift
  • Next by Date: Re: Segue from a toolbar item and prepareForSegue
  • Previous by thread: Re: NSComboBox in the tab ring
  • Next by thread: Re: Segue from a toolbar item and prepareForSegue
  • Index(es):
    • Date
    • Thread