Deprecated NSWorkspace Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in Mac OS X v10.6

checkForRemovableMedia

Polls the system’s drives for any disks that have been inserted but not yet mounted. (Deprecated in Mac OS X v10.6.)

- (void)checkForRemovableMedia

Discussion

This method doesn’t wait until such disks are mounted; instead, it requests that the disk be mounted asynchronously and returns immediately. Currently has no effect.

Availability
See Also
Declared In
NSWorkspace.h

fileSystemChanged

Returns a Boolean value indicating whether a change to the file system has been registered with a noteFileSystemChanged message since the last fileSystemChanged message. (Deprecated in Mac OS X v10.6.)

- (BOOL)fileSystemChanged

Return Value

Currently, this method always returns NO.

Availability
Declared In
NSWorkspace.h

findApplications

Examines all applications and updates the records of registered services and file types. (Deprecated in Mac OS X v10.6.)

- (void)findApplications

Availability
Declared In
NSWorkspace.h

mountNewRemovableMedia

Returns the full pathnames of any newly mounted disks. (Deprecated in Mac OS X v10.6.)

- (NSArray *)mountNewRemovableMedia

Return Value

An array of NSString objects, each of which contains the full pathname to a newly mounted disk.

Discussion

This method polls the system’s drives for any disks that have been inserted but not yet mounted and waits until the new disks have been mounted. This method posts an NSWorkspaceDidMountNotification to the NSWorkspace object’s notification center when it is finished. Currently provides the same functionality as mountedRemovableMedia.

Availability
See Also
Declared In
NSWorkspace.h

noteFileSystemChanged

Informs the NSWorkspace object that the file system has changed. (Deprecated in Mac OS X v10.6.)

- (void)noteFileSystemChanged

Discussion

The NSWorkspace object then gets the status of all the files and directories it is interested in and updates itself appropriately. This method is used by many objects that write or delete files.

The NSDocument and NSSavePanel objects use this method when saving a file. If you create a file directly, you should call noteFileSystemChanged so that the Finder can update the folder if it is open.

Availability
See Also
Declared In
NSWorkspace.h

noteUserDefaultsChanged

Informs the NSWorkspace object that the defaults database has changed. (Deprecated in Mac OS X v10.6.)

- (void)noteUserDefaultsChanged

Discussion

The NSWorkspace object then reads all the defaults it is interested in and reconfigures itself appropriately. For example, this method is used by the Preferences application to notify the Finder whether the user prefers to see hidden files. Currently has no effect.

Availability
See Also
Declared In
NSWorkspace.h

openTempFile:

Opens the specified temporary file using the default application for its type. (Deprecated in Mac OS X v10.6.)

- (BOOL)openTempFile:(NSString *)fullPath

Parameters
fullPath

The full path to the temporary file.

Return Value

YES if the file was successfully opened; otherwise, NO.

Discussion

The sending application is deactivated before the request is sent. Using this method instead of one of the openFile:... methods lets the receiving application know that it should delete the file when it no longer needs it. Currently provides the same functionality as openFile:.

Availability
See Also
Declared In
NSWorkspace.h

slideImage:from:to:

Animates a sliding image from one point to another. (Deprecated in Mac OS X v10.6.)

- (void)slideImage:(NSImage *)image from:(NSPoint)fromPoint to:(NSPoint)toPoint

Parameters
image

The image to animate.

fromPoint

The starting point, in screen coordinates.

toPoint

The ending point, in screen coordinates.

Discussion

Currently unimplemented.

Availability
Declared In
NSWorkspace.h

userDefaultsChanged

Returns a Boolean value indicating whether a change to the defaults database has been registered with a noteUserDefaultsChanged message since the last userDefaultsChanged message. (Deprecated in Mac OS X v10.6.)

- (BOOL)userDefaultsChanged

Return Value

Currently, this method always returns NO.

Availability
Declared In
NSWorkspace.h


© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-11-17)