Segue from a toolbar item and prepareForSegue
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