objective c - First call to toggleFullScreen: doesn't work (it used to!) -
i have document based application based on xcode template. it’s not using core data.
my application simple:
- document window has primary window set full screen collection behaviour in interface builder
- toggle fullscreen menu item works expected, window control.
in code, calling togglefullscreen: using following:
nswindow * window = [nsapp mainwindow]; [window togglefullscreen:self];
once before timer fires, , once after time period has finished revert non-full sceen mode.
recently, has stopped working - first call has no effect whatsoever. i've set breakpoint before first call , executes no effect.
i’ve set nswindowdelegate class testing, responds windowdidenterfullscreen: , windowdidexitfullscreen: when user toggles full sreen manually using menu item, or using standard window control.
the function windowdidfailtoenterfullscreen: in delgate never gets called after first toggle fails.
the second call (which uses exact same code) works - takes window fullscreen (not out of fullscreen, supposed to, due first call not working).
any ideas?
the frustrating thing is, used work! have older version of application same thing, using same code, , works fine. killed theory had upgrading el capitan.
so have happened? cannot life of me work out. have accidentally changed in interface builder? maybe project/compiler settings?
any appreciated!
regards,
john
have tried cleaning project? clean project build folder. press cmd+shift+k, , cmd+shift+opt+k in xcode. re-build project.
Comments
Post a Comment