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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -