How can I bring my RubyCocoa application to the front? Basically I want to acheive the same result as the applescript line:
tell application "Whatever" to activate
How can I bring my RubyCocoa application to the front? Basically I want to acheive the same result as the applescript line:
tell application "Whatever" to activate
In Cocoa you would bring your app forward with NSApplication's -activateIgnoringOtherApps:. Presumably you can make that call through the RubyCocoa bridge.
There are definitely valid uses for this, and I'm sure you know what you're doing, but just keep in mind that if you use this inappropriately, Mac users will chase you down with pitchforks and shotguns. Apps stealing focus when the user is busy working with something else doesn't really fly on OS X.