A method identified as deprecated has been superseded and may become unsupported in the future.
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
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.
NSWorkspace.hReturns 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
Currently, this method always returns NO.
NSWorkspace.hExamines all applications and updates the records of registered services and file types. (Deprecated in Mac OS X v10.6.)
- (void)findApplications
NSWorkspace.hReturns the full pathnames of any newly mounted disks. (Deprecated in Mac OS X v10.6.)
- (NSArray *)mountNewRemovableMedia
An array of NSString objects, each of which contains the full pathname to a newly mounted disk.
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.
NSWorkspace.hInforms the NSWorkspace object that the file system has changed. (Deprecated in Mac OS X v10.6.)
- (void)noteFileSystemChanged
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.
NSWorkspace.hInforms the NSWorkspace object that the defaults database has changed. (Deprecated in Mac OS X v10.6.)
- (void)noteUserDefaultsChanged
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.
NSWorkspace.hOpens the specified temporary file using the default application for its type. (Deprecated in Mac OS X v10.6.)
- (BOOL)openTempFile:(NSString *)fullPath
The full path to the temporary file.
YES if the file was successfully opened; otherwise, NO.
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:.
– openFile:– openFile:fromImage:at:inView:– openFile:withApplication:– openFile:withApplication:andDeactivate:NSWorkspace.hAnimates 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
The image to animate.
The starting point, in screen coordinates.
The ending point, in screen coordinates.
Currently unimplemented.
NSWorkspace.hReturns 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
Currently, this method always returns NO.
NSWorkspace.h© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-11-17)