scottc@net-community.com
)far@ix.netcom.com
)richard@brainstorm.co.uk
)The one and only application class
Copyright: (C) 1996,1999 Free Software Foundation, Inc.
- Declared in:
- AppKit/NSApplication.h
- Conforms to:
- NSCoding
Standards:
- MacOS-X
- OpenStep
- GNUstep
Description forthcoming.
Method summaryDescription forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Returns the applications delegate, as set by the
-setDelegate:
method.
The application delegate will automatically be sent
various notifications (as long as it implements
the appropriate methods) when application events
occur. The method to handle each of these
notifications has name mirroring the
notification name, so for instance an
NSApplicationDidBecomeActiveNotification is
handled by an
applicationDidBecomeActive:
method.
The delegate is also sent various messages to ask for authorisation to perform actions, or to ask it to perform actions (again, as long as it implements the appropriate methods).
The delegate is also called upon to respond to any actions which are not handled by a window, a window delgate, or by the application object itsself.. This is controlled by the -targetForAction: method.
Finally, the application delegate is responsible for handling messages sent to the application from remote processes (see the section documenting distributed objects for NSPasteboard ).
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Returns the window that is part of the current modal session, if any.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
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)
See Also: -runModalForWindow:
Sends the aSelector message to the
receiver returned by the
-targetForAction:to:from:
method (to which the aTarget and
sender arguments are passed).
The
method in the receiver must expect a single argument
... the sender.
Any value returned by
the method in the receiver is ignored.
This
method returns YES
on success,
NO
on failure (when no receiver can be
found for aSelector).
Description forthcoming.
Description forthcoming.
Returns the services provided previously registered using the -setServicesProvider: method.
Description forthcoming.
Description forthcoming.
Sets the delegate of the application to
anObject.
Beware, this does not retain
anObject, so you must be sure that, in
the event of anObject being deallocated,
you stop it being the application delagate by calling
this method again with another object (or
nil
) as the argument.
Description forthcoming.
Description forthcoming.
Sets the object which provides services to other
applications.
Passing a
nil
value for anObject will
result in the provision of services to other
applications by this application being
disabled.
See
NSPasteboard
for information about providing services.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
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.
If theTarget responds to theAction
it is returned, otherwise the application searches for
an object which will handle theAction and
returns the first object found.
Returns
nil
on failure.
Description forthcoming.
Attempts to perform aSelector using
[NSResponder -tryToPerform:with:]
and if that is not possible, attempts to get the application delegate to perform the aSelector.
Returns YES
if an object was found to perform aSelector, NO
otherwise.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
- Declared in:
- AppKit/NSApplication.h
Standards:
- MacOS-X
- OpenStep
- GNUstep
Description forthcoming.
Method summaryDescription forthcoming.
Description forthcoming.
Description forthcoming.
- Declared in:
- AppKit/NSApplication.h
Standards:
- NotOpenStep
- NotMacOS-X
- GNUstep
Description forthcoming.
Method summaryDescription forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.
Description forthcoming.