osx - How to bring all the app's windows to front when making active just one? -
in application have 4-5 windows on screen simultaneously. while working of windows can go behind other app's windows (behind xcode or safari example). then, when make 1 of application's window active other 3-4 windows remain on back.
is there way can bring app's windows front, when make 1 of them active?
p.s. know can use [nsapp windows] , call orderfrontregardless in loop, don't know how catch moment when 1 of windows becomes active.
any kind of or hint appreciated!
this code trick me:
-(void) applicationdidbecomeactive:(nsnotification *)notification { // todo: go on windows here , bring them active (nswindow * window in [nsapp orderedwindows]) { [window orderfrontregardless]; } }
don't forget set file app's delegate in order code work.
Comments
Post a Comment