org.rococoa.cocoa
Class NSApplication
java.lang.Object
org.rococoa.cocoa.foundation.NSObject
org.rococoa.cocoa.NSApplication
- All Implemented Interfaces:
- ObjCObject
public abstract class NSApplication
- extends NSObject
NSApplication
- Version:
- $Id: NSApplication.java,v 1.0 Mar 21, 2008 11:12:34 PM haraldk Exp$
- Author:
- Harald Kuhr, last modified by $Author: haraldk$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NSApp
public static final NSApplication NSApp
NSCriticalRequest
public static final int NSCriticalRequest
- See Also:
- Constant Field Values
NSInformationalRequest
public static final int NSInformationalRequest
- See Also:
- Constant Field Values
NSApplication
public NSApplication()
sharedApplication
public static NSApplication sharedApplication()
run
public abstract void run()
stop
public abstract void stop(ID sender)
applicationIconImage
public abstract NSImage applicationIconImage()
setApplicationIconImage
public abstract void setApplicationIconImage(NSImage image)
dockTile
public abstract NSDockTile dockTile()
delegate
public abstract ID delegate()
setDelegate
public abstract void setDelegate(ID delegate)
mainWindow
public abstract NSWindow mainWindow()
requestUserAttention
public abstract NSInteger requestUserAttention(int requestType)
- Activating the application cancels the user attention request.
A spoken notification will occur if spoken notifications are enabled.
Sending requestUserAttention: to an application that is already active has no effect.
If the inactive application presents a modal panel, this method will be invoked with
NSCriticalRequest automatically. The modal panel is not brought to the front for an
inactive application.
- Parameters:
requestType
- NSCriticalRequest
or NSInformationalRequest
- Returns:
- The identifier for the request.
You can use this value to cancel the request later using the
cancelUserAttentionRequest(org.rococoa.cocoa.foundation.NSInteger)
method.
cancelUserAttentionRequest
public abstract void cancelUserAttentionRequest(NSInteger request)
runModalForWindow
public abstract int runModalForWindow(NSWindow window)
mainMenu
public abstract NSMenu mainMenu()
Copyright © 2012. All Rights Reserved.