Re: Finder not responding to [NSRunningApplication activateWithOptions]

2015-04-09 Thread Tomáš Znamenáček
Thank you very much, the NSWorkspace trick is neat. Doesn’t work for me, though. Or, more precisely, doesn’t work for me on the external display. Activating the Finder either through NSRunningApplication or NSWorkspace on the built-in display works, but trying the same thing on my external display

Re: Finder not responding to [NSRunningApplication activateWithOptions]

2015-04-08 Thread John Joyce
On Apr 8, 2015, at 11:38 PM, Ken Thomases k...@codeweavers.com mailto:k...@codeweavers.com wrote: On Apr 8, 2015, at 9:19 AM, Tomáš Znamenáček tomas.znamena...@gmail.com mailto:tomas.znamena...@gmail.com wrote: I should have mentioned that Finder behaves unlike other apps in this

Finder not responding to [NSRunningApplication activateWithOptions]

2015-04-08 Thread Tomáš Znamenáček
Hello! I’m trying to bring the Finder window to front: NSRunningApplication *finder = [NSRunningApplication runningApplicationWithProcessIdentifier:finderPID]; [finder activateWithOptions:NSApplicationActivateIgnoringOtherApps]; This works on the primary, built-in display. But on my external

Re: Finder not responding to [NSRunningApplication activateWithOptions]

2015-04-08 Thread dangerwillrobinsondanger
On 2015/04/08, at 22:53, Tomáš Znamenáček tomas.znamena...@gmail.com wrote: I’m trying to bring the Finder window to front: NSRunningApplication *finder = [NSRunningApplication runningApplicationWithProcessIdentifier:finderPID]; [finder

Re: Finder not responding to [NSRunningApplication activateWithOptions]

2015-04-08 Thread Tomáš Znamenáček
I should have mentioned that Finder behaves unlike other apps in this regard. If I do the same with any other app, the app is correctly focused, stealing focus from whatever app was focused before. (And the menu bar on the display “gets focus”, too. Gets opaque, anyway.) T.

Re: Finder not responding to [NSRunningApplication activateWithOptions]

2015-04-08 Thread Ken Thomases
On Apr 8, 2015, at 9:19 AM, Tomáš Znamenáček tomas.znamena...@gmail.com wrote: I should have mentioned that Finder behaves unlike other apps in this regard. If I do the same with any other app, the app is correctly focused, stealing focus from whatever app was focused before. (And the menu bar