org.rococoa.cocoa.appkit
Interface AppKitLibrary.NSApplicationActivationOptions
- Enclosing interface:
- AppKitLibrary
public static interface AppKitLibrary.NSApplicationActivationOptions
native declaration : /System/Library/Frameworks/AppKit.framework/Headers/NSRunningApplication.h
enum values
NSApplicationActivateAllWindows
static final int NSApplicationActivateAllWindows
- See Also:
- Constant Field Values
NSApplicationActivateIgnoringOtherApps
static final int NSApplicationActivateIgnoringOtherApps
- By default, activation deactivates the calling app (assuming it was active), and then the new app is activated only if there is no currently active application. This prevents the new app from stealing focus from the user, if the app is slow to activate and the user has switched to a different app in the interim. However, if you specify NSApplicationActivateIgnoringOtherApps, the application is activated regardless of the currently active app, potentially stealing focus from the user.
You ALMOST NEVER want to pass this flag, because stealing key focus produces a very bad user experience.
- See Also:
- Constant Field Values
Copyright © 2009. All Rights Reserved.