org.rococoa.cocoa
Class NSApplication

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by 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$

Nested Class Summary
 
Nested classes/interfaces inherited from class org.rococoa.cocoa.foundation.NSObject
NSObject._class_
 
Field Summary
static NSApplication NSApp
           
static int NSCriticalRequest
           
static int NSInformationalRequest
           
 
Constructor Summary
NSApplication()
           
 
Method Summary
abstract  NSImage applicationIconImage()
           
abstract  void cancelUserAttentionRequest(NSInteger request)
           
abstract  ID delegate()
           
abstract  NSDockTile dockTile()
           
abstract  NSMenu mainMenu()
           
abstract  NSWindow mainWindow()
           
abstract  NSInteger requestUserAttention(int requestType)
          Activating the application cancels the user attention request.
abstract  void run()
           
abstract  int runModalForWindow(NSWindow window)
           
abstract  void setApplicationIconImage(NSImage image)
           
abstract  void setDelegate(ID delegate)
           
static NSApplication sharedApplication()
           
abstract  void stop(ID sender)
           
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
description, isKindOfClass, isKindOfClass, release, retain, retainCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.ObjCObject
id
 

Field Detail

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
Constructor Detail

NSApplication

public NSApplication()
Method Detail

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.