Return to the Alphabetic Index
Return to the Class Browser
Return to the Picture Browser
Copyright (c) 1994 by NeXT Computer, Inc. All Rights Reserved.

Copyright (c) 1996 Free Software Foundation, Inc.

NSWorkspace

Inherits From: NSObject

Conforms To: NSObject (NSObject)

Declared In: AppKit/NSWorkspace.h

GNUstep Implemenation

Class Description

An NSWorkspace object responds to application requests to perform a variety of services:

. opening, manipulating, and obtaining information about files and devices

. tracking changes to the file system, devices, and the user database

. launching applications

. miscellaneous services such as animating an image and requesting additional time before power off

An NSWorkspace object is made available through the sharedWorkspace method. For example, the following statement uses an NSWorkspace object to request that a file be opened in the Edit application:

[[NSWorkspace sharedWorkspace] openFile:"/Myfiles/README" withApplication:"Edit"];

Creating a Workspace

Opening Files

Manipulating Files

Requesting Information about Files

Tracking Changes to the File System

Updating Registered Services and File Types

Launching and Manipulating Applications

Unmounting a Device

Tracking Status Changes for Devices

Notification Center

Tracking Changes to the User Defaults Database

Animating an Image

Requesting Additional Time before Power Off or Logout