xcode - How can I hook up NSWindow's initialFirstResponder when using Storyboards in InterfaceBuilder? -


i'm frustrated wall using storyboards seems put between nswindows/nswindowcontrollers , nsviews/nsviewcontrollers. specific example: initialfirstresponder outlet on nswindow if whole view hierarchy in separate scene , can't referenced?

i'd make window called "progred"'s initialfirstresponder "content view" view view controller scene, can't make iboutlet references across scenes. i'd happy put viewcontroller , window in same scene, can't seem work of dragging/dropping i've tried 1 scene another, or trying add new 1 toolbox. seems you're required use segue relationship assign nsviewcontroller nswindow.

i've googled i'm not finding on problem might mean i'm missing obvious i'm pretty new storyboards can't imagine i'm first notice :).

scene heirarchy

i've been going through in swift (xcode 6.3.1). ib appears unable want despite doco , advice saying "control drag....". (eventual) solution/workaround set in code, in viewwillappear, of view controller. i'd tried variety of approaches until encounter apple doco declared initialfirstresponder must set before window displayed. hope helps.

by way, watch out default window behaviour being "restorable" seems restart (rebuilt) app focus in last field app killed in....sigh


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -