2001-12-17 16:51:51 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>NSWorkspace</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2002-01-28 04:50:14 +00:00
|
|
|
<a href="Gui.html">Up</a>
|
|
|
|
<br />
|
|
|
|
<h1><a name="title$NSWorkspace">NSWorkspace</a></h1>
|
2001-12-17 16:51:51 +00:00
|
|
|
<h3>Authors</h3>
|
|
|
|
<dl>
|
|
|
|
<dt>Scott Christley(<a href="mailto:scottc@net-community.com"><code>
|
|
|
|
scottc@net-community.com
|
|
|
|
</code></a>)</dt>
|
|
|
|
<dd>
|
|
|
|
</dd>
|
2002-01-28 04:50:14 +00:00
|
|
|
<dt>Richard Frith-Macdonald(<a href="mailto:richard@brainstorm.co.uk"><code>
|
|
|
|
richard@brainstorm.co.uk
|
|
|
|
</code></a>)</dt>
|
|
|
|
<dd>
|
|
|
|
</dd>
|
|
|
|
<dt>Fred Kiefer(<a href="mailto:FredKiefer@gmx.de"><code>
|
|
|
|
FredKiefer@gmx.de
|
|
|
|
</code></a>)</dt>
|
|
|
|
<dd>
|
|
|
|
</dd>
|
2001-12-17 16:51:51 +00:00
|
|
|
</dl>
|
|
|
|
<blockquote>
|
2002-01-28 04:50:14 +00:00
|
|
|
Workspace class
|
|
|
|
</blockquote>
|
|
|
|
<p><b>Copyright:</b> (C) 1996-1999, 2001 Free Software Foundation, Inc.</p>
|
|
|
|
<div>
|
|
|
|
<hr width="50%" align="left" />
|
|
|
|
<h3>Contents -</h3>
|
|
|
|
<ol>
|
|
|
|
<li>
|
|
|
|
<a href="#001000000000">Software documentation for the NSWorkspace class</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#002000000000">Software documentation for the NSWorkspace(GNUstep)
|
|
|
|
category</a>
|
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
<hr width="50%" align="left" />
|
|
|
|
</div>
|
|
|
|
<h1><a name="001000000000">
|
2001-12-17 16:51:51 +00:00
|
|
|
Software documentation for the NSWorkspace class
|
2002-01-28 04:50:14 +00:00
|
|
|
</a></h1>
|
2002-07-17 14:06:33 +00:00
|
|
|
<h2><a name="class$NSWorkspace">NSWorkspace</a> : NSObject</h2>
|
2002-01-28 04:50:14 +00:00
|
|
|
<blockquote>
|
|
|
|
<dl>
|
|
|
|
<dt><b>Declared in:</b></dt>
|
|
|
|
<dd>AppKit/NSWorkspace.h</dd>
|
|
|
|
</dl>
|
|
|
|
</blockquote>
|
|
|
|
<blockquote>
|
|
|
|
<b>Standards:</b>
|
|
|
|
<ul>
|
|
|
|
<li>MacOS-X</li>
|
|
|
|
<li>OpenStep</li>
|
2002-07-17 14:06:33 +00:00
|
|
|
<li>GNUstep</li>
|
2002-01-28 04:50:14 +00:00
|
|
|
</ul>
|
|
|
|
</blockquote>
|
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<b>Method summary</b>
|
|
|
|
<ul>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace+sharedWorkspace">+sharedWorkspace</a></li>
|
2002-07-17 14:06:33 +00:00
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-appIconForApp:">-appIconForApp:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-bundleForApp:">-bundleForApp:</a></li>
|
2002-01-28 04:50:14 +00:00
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-checkForRemovableMedia">-checkForRemovableMedia</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-extendPowerOffBy:">-extendPowerOffBy:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-fileSystemChanged">-fileSystemChanged</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-findApplications">-findApplications</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-fullPathForApplication:">-fullPathForApplication:</a></li>
|
2002-07-17 14:06:33 +00:00
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-getBestAppInRole:forExtension:">-getBestAppInRole:forExtension:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-getBestIconForExtension:">-getBestIconForExtension:</a></li>
|
2002-01-28 04:50:14 +00:00
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:">-getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-getInfoForFile:application:type:">-getInfoForFile:application:type:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-hideOtherApplications">-hideOtherApplications</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-iconForFile:">-iconForFile:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-iconForFileType:">-iconForFileType:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-iconForFiles:">-iconForFiles:</a></li>
|
2002-07-17 14:06:33 +00:00
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-infoForExtension:">-infoForExtension:</a></li>
|
2002-01-28 04:50:14 +00:00
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-isFilePackageAtPath:">-isFilePackageAtPath:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-launchApplication:">-launchApplication:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-launchApplication:showIcon:autolaunch:">-launchApplication:showIcon:autolaunch:</a></li>
|
2002-07-17 14:06:33 +00:00
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-locateApplicationBinary:">-locateApplicationBinary:</a></li>
|
2002-01-28 04:50:14 +00:00
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-mountNewRemovableMedia">-mountNewRemovableMedia</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-mountedLocalVolumePaths">-mountedLocalVolumePaths</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-mountedRemovableMedia">-mountedRemovableMedia</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-noteFileSystemChanged">-noteFileSystemChanged</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-noteFileSystemChanged:">-noteFileSystemChanged:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-noteUserDefaultsChanged">-noteUserDefaultsChanged</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-notificationCenter">-notificationCenter</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-openFile:">-openFile:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-openFile:fromImage:at:inView:">-openFile:fromImage:at:inView:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-openFile:withApplication:">-openFile:withApplication:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-openFile:withApplication:andDeactivate:">-openFile:withApplication:andDeactivate:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-openTempFile:">-openTempFile:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-openURL:">-openURL:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-performFileOperation:source:destination:files:tag:">-performFileOperation:source:destination:files:tag:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-selectFile:inFileViewerRootedAtPath:">-selectFile:inFileViewerRootedAtPath:</a></li>
|
2002-07-17 14:06:33 +00:00
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-setBestApp:inRole:forExtension:">-setBestApp:inRole:forExtension:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-setBestIcon:forExtension:">-setBestIcon:forExtension:</a></li>
|
2002-01-28 04:50:14 +00:00
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-slideImage:from:to:">-slideImage:from:to:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-unmountAndEjectDeviceAtPath:">-unmountAndEjectDeviceAtPath:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-userDefaultsChanged">-userDefaultsChanged</a></li>
|
|
|
|
</ul>
|
2002-07-17 14:06:33 +00:00
|
|
|
<hr width="50%" align="left" />
|
2002-01-28 04:50:14 +00:00
|
|
|
<h3><a name="method$NSWorkspace+sharedWorkspace">sharedWorkspace</a></h3>
|
|
|
|
+ (<a rel="gsdoc" href="#class$NSWorkspace">NSWorkspace</a>*) <b>sharedWorkspace</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-checkForRemovableMedia">checkForRemovableMedia</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (void) <b>checkForRemovableMedia</b>;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-extendPowerOffBy:">extendPowerOffBy:</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (int) <b>extendPowerOffBy:</b> (int)requested;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-fileSystemChanged">fileSystemChanged</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (BOOL) <b>fileSystemChanged</b>;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-findApplications">findApplications</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (void) <b>findApplications</b>;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
Updates Registered Services and File Types
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-fullPathForApplication:">fullPathForApplication:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (NSString*) <b>fullPathForApplication:</b> (NSString*)appName;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
2002-07-17 14:06:33 +00:00
|
|
|
Given an application name, return the full path for
|
|
|
|
that application. <br /> This method looks for the
|
|
|
|
application in standard locations, and if not
|
|
|
|
found there, according to MacOS-X documentation,
|
|
|
|
returns <code>nil</code>. <br /> If the supplied
|
|
|
|
application name is an absolute path, returns
|
|
|
|
that path irrespective of whether such an application
|
|
|
|
exists or not. This is <em>not</em> the docmented
|
|
|
|
debavior in the MacOS-X documentation, but is the
|
|
|
|
MacOS-X implemented behavior. <br /> If the
|
|
|
|
<var>appName</var> has an extension, it is used,
|
|
|
|
otherwise in GNUstep the standard app, debug, and
|
|
|
|
profile extensions * are tried. <br />
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:">getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (BOOL) <b>getFileSystemInfoForPath:</b> (NSString*)fullPath<b> isRemovable:</b> (BOOL*)removableFlag<b> isWritable:</b> (BOOL*)writableFlag<b> isUnmountable:</b> (BOOL*)unmountableFlag<b> description:</b> (NSString**)description<b> type:</b> (NSString**)fileSystemType;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-getInfoForFile:application:type:">getInfoForFile:application:type:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (BOOL) <b>getInfoForFile:</b> (NSString*)fullPath<b> application:</b> (NSString**)appName<b> type:</b> (NSString**)type;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-hideOtherApplications">hideOtherApplications</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (void) <b>hideOtherApplications</b>;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-iconForFile:">iconForFile:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*) <b>iconForFile:</b> (NSString*)aPath;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-iconForFileType:">iconForFileType:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*) <b>iconForFileType:</b> (NSString*)fileType;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-iconForFiles:">iconForFiles:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*) <b>iconForFiles:</b> (NSArray*)pathArray;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-isFilePackageAtPath:">isFilePackageAtPath:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (BOOL) <b>isFilePackageAtPath:</b> (NSString*)fullPath;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-launchApplication:">launchApplication:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (BOOL) <b>launchApplication:</b> (NSString*)appName;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
Calls
|
|
|
|
<a rel="gsdoc" href="#method$NSWorkspace-launchApplication:showIcon:autolaunch:">-launchApplication:showIcon:autolaunch:</a>
|
|
|
|
with arguments set to show the icon but not set it up as an autolaunch.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-launchApplication:showIcon:autolaunch:">launchApplication:showIcon:autolaunch:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (BOOL) <b>launchApplication:</b> (NSString*)appName<b> showIcon:</b> (BOOL)showIcon<b> autolaunch:</b> (BOOL)autolaunch;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
Launches the specified application (unless it is
|
|
|
|
alreeady running)
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-mountNewRemovableMedia">mountNewRemovableMedia</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (NSArray*) <b>mountNewRemovableMedia</b>;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-mountedLocalVolumePaths">mountedLocalVolumePaths</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (NSArray*) <b>mountedLocalVolumePaths</b>;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-mountedRemovableMedia">mountedRemovableMedia</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (NSArray*) <b>mountedRemovableMedia</b>;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-noteFileSystemChanged">noteFileSystemChanged</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (void) <b>noteFileSystemChanged</b>;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-noteFileSystemChanged:">noteFileSystemChanged:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (void) <b>noteFileSystemChanged:</b> (NSString*)path;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-noteUserDefaultsChanged">noteUserDefaultsChanged</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (void) <b>noteUserDefaultsChanged</b>;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
Simply makes a note that the user defaults database
|
|
|
|
has changed.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-notificationCenter">notificationCenter</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (NSNotificationCenter*) <b>notificationCenter</b>;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
Returns the workspace notification center
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-openFile:">openFile:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (BOOL) <b>openFile:</b> (NSString*)fullPath;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-openFile:fromImage:at:inView:">openFile:fromImage:at:inView:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (BOOL) <b>openFile:</b> (NSString*)fullPath<b> fromImage:</b> (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*)anImage<b> at:</b> (NSPoint)point<b> inView:</b> (<a rel="gsdoc" href="NSView.html#class$NSView">NSView</a>*)aView;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-openFile:withApplication:">openFile:withApplication:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (BOOL) <b>openFile:</b> (NSString*)fullPath<b> withApplication:</b> (NSString*)appName;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-openFile:withApplication:andDeactivate:">openFile:withApplication:andDeactivate:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (BOOL) <b>openFile:</b> (NSString*)fullPath<b> withApplication:</b> (NSString*)appName<b> andDeactivate:</b> (BOOL)flag;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-openTempFile:">openTempFile:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (BOOL) <b>openTempFile:</b> (NSString*)fullPath;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-openURL:">openURL:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (BOOL) <b>openURL:</b> (NSURL*)url;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-performFileOperation:source:destination:files:tag:">performFileOperation:source:destination:files:tag:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (BOOL) <b>performFileOperation:</b> (NSString*)operation<b> source:</b> (NSString*)source<b> destination:</b> (NSString*)destination<b> files:</b> (NSArray*)files<b> tag:</b> (int*)tag;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-selectFile:inFileViewerRootedAtPath:">selectFile:inFileViewerRootedAtPath:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (BOOL) <b>selectFile:</b> (NSString*)fullPath<b> inFileViewerRootedAtPath:</b> (NSString*)rootFullpath;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-slideImage:from:to:">slideImage:from:to:</a></h3>
|
|
|
|
- (void) <b>slideImage:</b> (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*)image<b> from:</b> (NSPoint)fromPoint<b> to:</b> (NSPoint)toPoint;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
Animating an Image- slides it from one point on
|
|
|
|
the screen to another.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-unmountAndEjectDeviceAtPath:">unmountAndEjectDeviceAtPath:</a></h3>
|
2002-07-17 14:06:33 +00:00
|
|
|
- (BOOL) <b>unmountAndEjectDeviceAtPath:</b> (NSString*)path;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-userDefaultsChanged">userDefaultsChanged</a></h3>
|
2001-12-17 16:51:51 +00:00
|
|
|
- (BOOL) <b>userDefaultsChanged</b>;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
Returns a flag to say if the defaults database has
|
|
|
|
changed since the last time this method was called.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<h1><a name="002000000000">
|
2001-12-17 16:51:51 +00:00
|
|
|
Software documentation for the NSWorkspace(GNUstep)
|
|
|
|
category
|
2002-01-28 04:50:14 +00:00
|
|
|
</a></h1>
|
|
|
|
<h2><a rel="gsdoc" href="#class$NSWorkspace">NSWorkspace</a>(<a name="category$NSWorkspace(GNUstep)">GNUstep</a>)</h2>
|
|
|
|
<blockquote>
|
|
|
|
<dl>
|
|
|
|
<dt><b>Declared in:</b></dt>
|
|
|
|
<dd>AppKit/NSWorkspace.h</dd>
|
|
|
|
</dl>
|
|
|
|
</blockquote>
|
|
|
|
<blockquote>
|
|
|
|
<b>Standards:</b>
|
|
|
|
<ul>
|
|
|
|
<li>NotOpenStep</li>
|
|
|
|
<li>NotMacOS-X</li>
|
|
|
|
<li>GNUstep</li>
|
|
|
|
</ul>
|
|
|
|
</blockquote>
|
|
|
|
<p>
|
|
|
|
|
|
|
|
<em>Description forthcoming.</em>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<b>Method summary</b>
|
|
|
|
<ul>
|
2002-07-17 14:06:33 +00:00
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-appIconForApp:">-appIconForApp:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-bundleForApp:">-bundleForApp:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-getBestAppInRole:forExtension:">-getBestAppInRole:forExtension:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-getBestIconForExtension:">-getBestIconForExtension:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-infoForExtension:">-infoForExtension:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-locateApplicationBinary:">-locateApplicationBinary:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-setBestApp:inRole:forExtension:">-setBestApp:inRole:forExtension:</a></li>
|
|
|
|
<li><a rel="gsdoc" href="NSWorkspace.html#method$NSWorkspace-setBestIcon:forExtension:">-setBestIcon:forExtension:</a></li>
|
2002-01-28 04:50:14 +00:00
|
|
|
</ul>
|
2002-07-17 14:06:33 +00:00
|
|
|
<hr width="50%" align="left" />
|
|
|
|
<h3><a name="method$NSWorkspace-appIconForApp:">appIconForApp:</a></h3>
|
|
|
|
- (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*) <b>appIconForApp:</b> (NSString*)appName;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
Returns the application icon for the given app. Or
|
|
|
|
null if none defined or <var>appName</var> is not a
|
|
|
|
valid application name.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
2002-07-17 14:06:33 +00:00
|
|
|
<h3><a name="method$NSWorkspace-bundleForApp:">bundleForApp:</a></h3>
|
|
|
|
- (NSBundle*) <b>bundleForApp:</b> (NSString*)appName;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
Returns the application bundle for the named
|
2002-07-17 14:06:33 +00:00
|
|
|
application. Accepts either a full path to an
|
|
|
|
app or just the name. The extension (.app,.debug,
|
|
|
|
.profile) is optional, but if provided it will be
|
|
|
|
used. <br /> Returns <code>nil</code> if the
|
|
|
|
specified app does not exist as requested.
|
2002-01-28 04:50:14 +00:00
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
2002-07-17 14:06:33 +00:00
|
|
|
<h3><a name="method$NSWorkspace-getBestAppInRole:forExtension:">getBestAppInRole:forExtension:</a></h3>
|
|
|
|
- (NSString*) <b>getBestAppInRole:</b> (NSString*)role<b> forExtension:</b> (NSString*)ext;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
Returns the 'best' application to open a file with
|
|
|
|
the specified extension using the given <var>role</var>
|
|
|
|
. If the <var>role</var> is <code>nil</code> then apps
|
|
|
|
which can edit are preferred but viewers are also
|
|
|
|
acceptable. Uses a user preferred app or picks
|
|
|
|
any good match.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
2002-07-17 14:06:33 +00:00
|
|
|
<h3><a name="method$NSWorkspace-getBestIconForExtension:">getBestIconForExtension:</a></h3>
|
|
|
|
- (NSString*) <b>getBestIconForExtension:</b> (NSString*)ext;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
Returns the path set for the icon matching the
|
|
|
|
image by
|
|
|
|
<a rel="gsdoc" href="#method$NSWorkspace(GNUstep)-setBestIcon:forExtension:">
|
|
|
|
-setBestIcon:forExtension:
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
2002-07-17 14:06:33 +00:00
|
|
|
<h3><a name="method$NSWorkspace-infoForExtension:">infoForExtension:</a></h3>
|
|
|
|
- (NSDictionary*) <b>infoForExtension:</b> (NSString*)ext;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
Gets the applications cache (generated by the
|
|
|
|
make_services tool) and looks up the special
|
|
|
|
entry that contains a dictionary of all file
|
|
|
|
extensions recognised by GNUstep applications.
|
|
|
|
Then finds the dictionary of applications that can
|
|
|
|
handle our file and returns it.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
2002-07-17 14:06:33 +00:00
|
|
|
<h3><a name="method$NSWorkspace-locateApplicationBinary:">locateApplicationBinary:</a></h3>
|
|
|
|
- (NSString*) <b>locateApplicationBinary:</b> (NSString*)appName;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
Requires the path to an application wrapper as an
|
|
|
|
argument, and returns the full path to the
|
|
|
|
executable.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
2002-07-17 14:06:33 +00:00
|
|
|
<h3><a name="method$NSWorkspace-setBestApp:inRole:forExtension:">setBestApp:inRole:forExtension:</a></h3>
|
|
|
|
- (void) <b>setBestApp:</b> (NSString*)appName<b> inRole:</b> (NSString*)role<b> forExtension:</b> (NSString*)ext;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
Sets up a user preference for which app should be used
|
|
|
|
to open files of the specified extension.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
2002-07-17 14:06:33 +00:00
|
|
|
<h3><a name="method$NSWorkspace-setBestIcon:forExtension:">setBestIcon:forExtension:</a></h3>
|
|
|
|
- (void) <b>setBestIcon:</b> (NSString*)iconPath<b> forExtension:</b> (NSString*)ext;<br />
|
2002-01-28 04:50:14 +00:00
|
|
|
<p>
|
|
|
|
|
|
|
|
Sets up a user preference for which icon should be
|
|
|
|
used to represent the specified file extension.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr width="25%" align="left" />
|
|
|
|
<br />
|
|
|
|
<a href="Gui.html">Up</a>
|
2001-12-17 16:51:51 +00:00
|
|
|
</body>
|
|
|
|
</html>
|