Up

NSApplication

Authors

Scott Christley( scottc@net-community.com )
Felipe A. Rodriguez( far@ix.netcom.com )
Richard Frith-Macdonald( richard@brainstorm.co.uk )
The one and only application class

Copyright: (C) 1996,1999 Free Software Foundation, Inc.


Contents -

  1. Software documentation for the NSApplication class
  2. Software documentation for the NSObject(NSServicesRequests) category
  3. Software documentation for the GSAppDelegateProtocol protocol

Software documentation for the NSApplication class

NSApplication : NSResponder

Declared in:
AppKit/NSApplication.h
Conforms to:
NSCoding
Standards:

Description forthcoming.

Method summary

detachDrawingThread:toTarget:withObject:

+ (void) detachDrawingThread: (SEL)selector toTarget: (id)target withObject: (id)argument;
Standards: NotOpenStep, GNUstep, MacOS-X

Description forthcoming.


sharedApplication

+ (NSApplication*) sharedApplication;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


abortModal

- (void) abortModal;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


activateIgnoringOtherApps:

- (void) activateIgnoringOtherApps: (BOOL)flag;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


addWindowsItem:title:filename:

- (void) addWindowsItem: (NSWindow*)aWindow title: (NSString*)aString filename: (BOOL)isFilename;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


applicationIconImage

- (NSImage*) applicationIconImage;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


arrangeInFront:

- (void) arrangeInFront: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


beginModalSessionForWindow:

- (NSModalSession) beginModalSessionForWindow: (NSWindow*)theWindow;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:

- (void) beginSheet: (NSWindow*)sheet modalForWindow: (NSWindow*)docWindow modalDelegate: (id)modalDelegate didEndSelector: (SEL)didEndSelector contextInfo: (void*)contextInfo;
Standards: NotOpenStep, GNUstep, MacOS-X

Description forthcoming.


changeWindowsItem:title:filename:

- (void) changeWindowsItem: (NSWindow*)aWindow title: (NSString*)aString filename: (BOOL)isFilename;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


context

- (NSGraphicsContext*) context;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


currentEvent

- (NSEvent*) currentEvent;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


deactivate

- (void) deactivate;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


delegate

- (id) delegate;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


discardEventsMatchingMask:beforeEvent:

- (void) discardEventsMatchingMask: (unsigned int)mask beforeEvent: (NSEvent*)lastEvent;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


encodeWithCoder:

- (void) encodeWithCoder: (NSCoder*)aCoder;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


endModalSession:

- (void) endModalSession: (NSModalSession)theSession;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


endSheet:

- (void) endSheet: (NSWindow*)sheet;
Standards: NotOpenStep, GNUstep, MacOS-X

Description forthcoming.


endSheet:returnCode:

- (void) endSheet: (NSWindow*)sheet returnCode: (int)returnCode;
Standards: NotOpenStep, GNUstep, MacOS-X

Description forthcoming.


finishLaunching

- (void) finishLaunching;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


hide:

- (void) hide: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


hideOtherApplications:

- (void) hideOtherApplications: (id)sender;
Standards: NotOpenStep, GNUstep, MacOS-X

Description forthcoming.


initWithCoder:

- (id) initWithCoder: (NSCoder*)aDecoder;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


isActive

- (BOOL) isActive;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


isHidden

- (BOOL) isHidden;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


isRunning

- (BOOL) isRunning;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


keyWindow

- (NSWindow*) keyWindow;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


mainMenu

- (NSMenu*) mainMenu;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


mainWindow

- (NSWindow*) mainWindow;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


makeWindowsPerform:inOrder:

- (NSWindow*) makeWindowsPerform: (SEL)aSelector inOrder: (BOOL)flag;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


miniaturizeAll:

- (void) miniaturizeAll: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


modalWindow

- (NSWindow*) modalWindow;
Standards: GNUstep, MacOS-X, OpenStep

Returns the window that is part of the current modal session, if any.


nextEventMatchingMask:untilDate:inMode:dequeue:

- (NSEvent*) nextEventMatchingMask: (unsigned int)mask untilDate: (NSDate*)expiration inMode: (NSString*)mode dequeue: (BOOL)flag;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


orderFrontColorPanel:

- (void) orderFrontColorPanel: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


orderFrontDataLinkPanel:

- (void) orderFrontDataLinkPanel: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


orderFrontHelpPanel:

- (void) orderFrontHelpPanel: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


orderFrontStandardAboutPanel:

- (void) orderFrontStandardAboutPanel: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


orderFrontStandardAboutPanelWithOptions:

- (void) orderFrontStandardAboutPanelWithOptions: (NSDictionary*)dictionary;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


orderFrontStandardInfoPanel:

- (void) orderFrontStandardInfoPanel: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


orderFrontStandardInfoPanelWithOptions:

- (void) orderFrontStandardInfoPanelWithOptions: (NSDictionary*)dictionary;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


postEvent:atStart:

- (void) postEvent: (NSEvent*)event atStart: (BOOL)flag;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


preventWindowOrdering

- (void) preventWindowOrdering;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


registerServicesMenuSendTypes:returnTypes:

- (void) registerServicesMenuSendTypes: (NSArray*)sendTypes returnTypes: (NSArray*)returnTypes;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


removeWindowsItem:

- (void) removeWindowsItem: (NSWindow*)aWindow;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


reportException:

- (void) reportException: (NSException*)anException;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


run

- (void) run;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


runModalForWindow:

- (int) runModalForWindow: (NSWindow*)theWindow;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


runModalForWindow:relativeToWindow:

- (int) runModalForWindow: (NSWindow*)theWindow relativeToWindow: (NSWindow*)docWindow;
Standards: NotOpenStep, GNUstep, MacOS-X

Description forthcoming.


runModalSession:

- (int) runModalSession: (NSModalSession)theSession;
Standards: GNUstep, MacOS-X, OpenStep

Processes one event for a modal session described by the theSession variable. Before processing the event, it makes the session window key and orders the window front, so there is no need to do this separately. When finished, it returns the state of the session (i.e. whether it is still running or has been stopped, etc)


runPageLayout:

- (void) runPageLayout: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


sendAction:to:from:

- (BOOL) sendAction: (SEL)aSelector to: (id)aTarget from: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


sendEvent:

- (void) sendEvent: (NSEvent*)theEvent;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


servicesMenu

- (NSMenu*) servicesMenu;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


servicesProvider

- (id) servicesProvider;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setAppleMenu:

- (void) setAppleMenu: (NSMenu*)aMenu;
Standards: NotOpenStep, GNUstep, MacOS-X

Description forthcoming.


setApplicationIconImage:

- (void) setApplicationIconImage: (NSImage*)anImage;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setDelegate:

- (void) setDelegate: (id)anObject;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setMainMenu:

- (void) setMainMenu: (NSMenu*)aMenu;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setServicesMenu:

- (void) setServicesMenu: (NSMenu*)aMenu;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setServicesProvider:

- (void) setServicesProvider: (id)anObject;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setWindowsMenu:

- (void) setWindowsMenu: (NSMenu*)aMenu;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


setWindowsNeedUpdate:

- (void) setWindowsNeedUpdate: (BOOL)flag;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


stop:

- (void) stop: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


stopModal

- (void) stopModal;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


stopModalWithCode:

- (void) stopModalWithCode: (int)returnCode;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


targetForAction:

- (id) targetForAction: (SEL)aSelector;
Standards: GNUstep, MacOS-X, OpenStep

Returns the target object that will respond to aSelector, if any. The method first checks if any of the key window's first responders, the key window or its delegate responds. Next it checks the main window in the same way. Finally it checks the receiver (NSApplication) and it's delegate.


targetForAction:to:from:

- (id) targetForAction: (SEL)theAction to: (id)theTarget from: (id)sender;
Standards: NotOpenStep, GNUstep, MacOS-X

Description forthcoming.


terminate:

- (void) terminate: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


tryToPerform:with:

- (BOOL) tryToPerform: (SEL)aSelector with: (id)anObject;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


unhide:

- (void) unhide: (id)sender;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


unhideAllApplications:

- (void) unhideAllApplications: (id)sender;
Standards: NotOpenStep, GNUstep, MacOS-X

Description forthcoming.


unhideWithoutActivation

- (void) unhideWithoutActivation;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


updateWindows

- (void) updateWindows;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


updateWindowsItem:

- (void) updateWindowsItem: (NSWindow*)aWindow;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


validRequestorForSendType:returnType:

- (id) validRequestorForSendType: (NSString*)sendType returnType: (NSString*)returnType;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


windowWithWindowNumber:

- (NSWindow*) windowWithWindowNumber: (int)windowNum;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


windows

- (NSArray*) windows;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


windowsMenu

- (NSMenu*) windowsMenu;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


Software documentation for the NSObject(NSServicesRequests) category

NSObject(NSServicesRequests)

Declared in:
AppKit/NSApplication.h
Standards:

Description forthcoming.

Method summary

iconWindow

- (NSWindow*) iconWindow;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


readSelectionFromPasteboard:

- (BOOL) readSelectionFromPasteboard: (NSPasteboard*)pboard;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


writeSelectionToPasteboard:types:

- (BOOL) writeSelectionToPasteboard: (NSPasteboard*)pboard types: (NSArray*)types;
Standards: GNUstep, MacOS-X, OpenStep

Description forthcoming.


Software documentation for the GSAppDelegateProtocol protocol

GSAppDelegateProtocol

Declared in:
AppKit/NSApplication.h
Standards:

Description forthcoming.

Method summary

application:openFile:

- (BOOL) application: (NSApplication*)app openFile: (NSString*)filename;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


application:openFileWithoutUI:

- (BOOL) application: (NSApplication*)app openFileWithoutUI: (NSString*)filename;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


application:openTempFile:

- (BOOL) application: (NSApplication*)app openTempFile: (NSString*)filename;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


application:printFile:

- (BOOL) application: (NSApplication*)theApplication printFile: (NSString*)filename;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationDidBecomeActive:

- (void) applicationDidBecomeActive: (NSNotification*)aNotification;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationDidFinishLaunching:

- (void) applicationDidFinishLaunching: (NSNotification*)aNotification;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationDidHide:

- (void) applicationDidHide: (NSNotification*)aNotification;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationDidResignActive:

- (void) applicationDidResignActive: (NSNotification*)aNotification;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationDidUnhide:

- (void) applicationDidUnhide: (NSNotification*)aNotification;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationDidUpdate:

- (void) applicationDidUpdate: (NSNotification*)aNotification;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationOpenUntitledFile:

- (BOOL) applicationOpenUntitledFile: (NSApplication*)app;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationShouldOpenUntitledFile:

- (BOOL) applicationShouldOpenUntitledFile: (NSApplication*)sender;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationShouldTerminate:

- (BOOL) applicationShouldTerminate: (id)sender;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationShouldTerminateAfterLastWindowClosed:

- (BOOL) applicationShouldTerminateAfterLastWindowClosed: (id)sender;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationWillBecomeActive:

- (void) applicationWillBecomeActive: (NSNotification*)aNotification;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationWillFinishLaunching:

- (void) applicationWillFinishLaunching: (NSNotification*)aNotification;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationWillHide:

- (void) applicationWillHide: (NSNotification*)aNotification;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationWillResignActive:

- (void) applicationWillResignActive: (NSNotification*)aNotification;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationWillTerminate:

- (void) applicationWillTerminate: (NSNotification*)aNotification;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationWillUnhide:

- (void) applicationWillUnhide: (NSNotification*)aNotification;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.


applicationWillUpdate:

- (void) applicationWillUpdate: (NSNotification*)aNotification;
Standards: NotOpenStep, NotMacOS-X, GNUstep

Description forthcoming.



Up