osx - `view.window` is nil inside `NSViewController-viewDidLoad` -
i' trying access view.window
inside nsviewcontroller-viewdidload
it's nil. there way force window load inside viewdidload
?
i'm pretty sure answer direct question "no"; can't make window load inside -viewdidload
, in middle of nib-loading process @ point , is. depending on how nib constructed, , internal details of appkit, might find window loaded , connected in -viewdidload
, not should rely upon, since not guaranteed. want using -awakefromnib
instead; called after objects in nib have been loaded , initialized, window should set @ point.
Comments
Post a Comment