tags:

views:

133

answers:

1

I'm writing an MacOSX bundled app in GLFW.

When the window pops up, I want it to be on top of all the other windows. I also want it to grab focus (I'm coding in vim, and I type ":make run" -- and I after that, I want to interact with the app).

Question:

1) Is there some API call I can use to make this happen? 2) Is there some configuration I can do in MacOSX to say something like "the pogram named blah, have it steal focus on startup"?

Thanks!

A: 

The cocoa API is [NSWindow makeKeyAndOrderFront:] there's probably something similar you can do from your library.

Mark Bessey