Establishes an NSConnection to the application
listening at port (by convention
usually the application name), launching
appName if necessary. Returns the proxy to
the remote application, or nil
on failure.
The value of port specifies the name of the
distributed objects service to which the
connection is to be made. If this is
nil
it will be inferred from
appName... by convention, applications use
their own name (minus any path or extension) for
this.
If appName is nil
or cannot be
launched, this attempts to locate any application
in a standard location whose name matches
port and launch that application.
The value of expire provides a timeout in case the application cannot be contacted promptly. If it is omitted, a thirty second timeout is used.
Given the name of a serviceItem, and some data in a pasteboard this function sends the data to the service provider (launching another application if necessary) and retrieves the result of the service in the pastebaord.
Returns YES
on success, NO
otherwise.
Controls whether the item name should be included in the services menu.
If enabled is YES
then the
services menu for each application will include
the named item, if enabled is
NO
then the service will not be shown
in application services menus.
Returns 0 if the setting is successfuly changed. Non-zero otherwise.
~/Library/Services
before invoking this
function.
Returns the interface style the
responder should use, which affects how a
UI element (such as a button or menu) is displayed. If
the responder has an interface style set,
the key is ignored and the responder's
interface style is returned. Otherwise the style
associated with the key is returned
(if set), otherwise the default style is returned. In
no case will the style NSNoInterfaceStyle
be returned.
Styles can be set using the user defaults system. Currently available styles are
You can set a default style for all UI elements using
the NSInterfaceStyleDefault
key:
defaults write NSGlobalDomain NSInterfaceStyleDefault GSWindowMakerInterfaceStyle
Returns a standardised pasteboard type for file contents, formed from the supplied file extension.
Data written to a pasteboard with a file contents type should be written using the [NSPasteboard -writeFileContents:] or [NSPasteboard -writeFileWrapper:] method. Similarly, the data should be read using the [NSPasteboard -readFileContentsType:toFile:] or [NSPasteboard -readFileWrapper] method.
Returns a standardised pasteboard type for file names, formed from the supplied file extension.
Data written to a pasteboard with a file names type
should be a single name written using
[NSPasteboard -setString:forType:]
or an array of strings written using [NSPasteboard -setPropertyList:forType:]
.
Similarly, the data should be read using the [NSPasteboard -stringForType:]
or [NSPasteboard -propertyListForType:]
method.
See also the NSGetFileType() and NSGetFileTypes() functions.