objective c - How to switch to a full screen window when [fullscreenWindow makeKeyAndOrderFront:nil] seems not to work? -
i have 2 windows in applications: window1 , window2. window2 created after window1 per user's action. when window2 in full screen mode, belong separate space default different space of window1. app supports launched url , singleton.
the problem when app running , window2 in fullscreen mode: try launch app via url , window2's title specified in url, in app, though
[window2 makekeyandorderfront:nil]
is called, window2 won't become front, instead, window1 becomes front , activated.
if window2 not in full screen mode, there no problem same scenario.(window2 brought front most.)
how can make app switch fullscreen space , make window2 become front when in full screen mode , makekeyandorderfront seems not work expected?
i tried
[window2 setcollectionbehavior: nswindowcollectionbehaviormovetoactivespace]
,
the result not want.
the app did not switch fullscreen space, still in window1's space. , on right side of menubar, there no fullscreen toggle button.
Comments
Post a Comment