|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rococoa.cocoa.foundation.NSObject
org.rococoa.cocoa.appkit.NSWorkspace
public abstract class NSWorkspace
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.
Nested Class Summary | |
---|---|
static class |
NSWorkspace._class_
|
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject |
---|
NSObject._static_ |
Constructor Summary | |
---|---|
NSWorkspace()
|
Method Summary | |
---|---|
abstract NSString |
absolutePathForAppBundleWithIdentifier(NSString bundleIdentifier)
Get the path for the application with the given identifier. |
abstract void |
activateFileViewerSelectingURLs(NSArray fileURLs)
Activate the Finder, and open one or more windows selecting the files at the given fileURLs. |
abstract NSDictionary |
activeApplication()
Get an NSDictionary representing the currently frontmost app, with the above keys. |
static NSWorkspace |
alloc()
|
NSDeprecated |
as_NSWorkspace_NSDeprecated()
|
NSDesktopImages |
as_NSWorkspace_NSDesktopImages()
|
abstract NSInteger |
extendPowerOffBy(NSInteger requested)
extendPowerOffBy: is currently not implemented. |
abstract NSArray |
fileLabelColors()
Get the corresponding array of file label colors. |
abstract NSArray |
fileLabels()
Get the array of file labels as NSStrings. |
abstract boolean |
filenameExtension_isValidForType(NSString filenameExtension,
NSString typeName)
Given a file name extension and a UTI, return YES if the file name extension is a valid tag for the identified type, NO otherwise. |
abstract NSString |
fullPathForApplication(NSString appName)
Get the full path for a given application name, which may or may not have the .app extension. |
abstract boolean |
getFileSystemInfoForPath_isRemovable_isWritable_isUnmountable_description_type(NSString fullPath,
boolean removableFlag,
boolean writableFlag,
boolean unmountableFlag,
PointerByReference description,
PointerByReference fileSystemType)
Gets information about the filesystem. |
abstract boolean |
getInfoForFile_application_type(NSString fullPath,
PointerByReference appName,
PointerByReference type)
Get, by reference, the name of the app used to open a file at the given path, and the type of the file. |
static NSWorkspace._class_ |
getNSClass()
|
abstract void |
hideOtherApplications()
Attempt to hide all other applications. |
abstract NSImage |
iconForFile(NSString fullPath)
Returns the icon for a file at a given path, or a generic icon if the operation fails. |
abstract NSImage |
iconForFiles(NSArray fullPaths)
Returns the icon for a group of files at the given paths. |
abstract NSImage |
iconForFileType(NSString fileType)
Get the icon for a given file type. |
abstract boolean |
isFilePackageAtPath(NSString fullPath)
Indicates whether a given directory is a package. |
abstract boolean |
launchApplication_showIcon_autolaunch(NSString appName,
boolean showIcon,
boolean autolaunch)
This currently does the same thing as launchApplication:. |
abstract boolean |
launchApplication(NSString appName)
Launches an application. |
abstract NSRunningApplication |
launchApplicationAtURL_options_configuration_error(NSURL url,
int options,
NSDictionary configuration,
PointerByReference error)
Launches the app at the given URL. |
abstract boolean |
launchAppWithBundleIdentifier_options_additionalEventParamDescriptor_launchIdentifier(NSString bundleIdentifier,
int options,
NSAppleEventDescriptor descriptor,
PointerByReference identifier)
The following methods launch an app with the given bundle identifier. |
abstract NSArray |
launchedApplications()
Gets an array of NSDictionaries with the above keys. |
abstract NSString |
localizedDescriptionForType(NSString typeName)
Given a UTI, return a string that describes the document type and is fit to present to the user, or nil for failure. |
abstract NSArray |
mountedLocalVolumePaths()
Get the mount paths of all local volumes, that is, volumes that are backed by a physical device and are not a network mount. |
abstract NSArray |
mountedRemovableMedia()
Get the mount paths of all volumes backed by removable media, such as DVDs. |
static NSWorkspace |
new_()
|
abstract void |
noteFileSystemChanged(NSString path)
noteFileSystemChanged: informs listeners of a filesystem change, using the FNNotifyByPath() API. |
abstract NSNotificationCenter |
notificationCenter()
Returns the NSNotificationCenter for this NSWorkspace. |
abstract boolean |
openFile_withApplication_andDeactivate(NSString fullPath,
NSString appName,
boolean flag)
Original signature : -(BOOL)openFile:(NSString*) withApplication:(NSString*) andDeactivate:(BOOL) native declaration : NSWorkspace.h:64 |
abstract boolean |
openFile_withApplication(NSString fullPath,
NSString appName)
Original signature : -(BOOL)openFile:(NSString*) withApplication:(NSString*) native declaration : NSWorkspace.h:63 |
abstract boolean |
openFile(NSString fullPath)
Open a file at some path. |
abstract boolean |
openURL(NSURL url)
Open a URL, using the default handler for the URL's scheme. |
abstract boolean |
openURLs_withAppBundleIdentifier_options_additionalEventParamDescriptor_launchIdentifiers(NSArray urls,
NSString bundleIdentifier,
int options,
NSAppleEventDescriptor descriptor,
PointerByReference identifiers)
Original signature : -(BOOL)openURLs:(NSArray*) withAppBundleIdentifier:(NSString*) options:(NSWorkspaceLaunchOptions) additionalEventParamDescriptor:(NSAppleEventDescriptor*) launchIdentifiers:(NSArray**) native declaration : NSWorkspace.h:184 |
abstract boolean |
performFileOperation_source_destination_files_tag(NSString operation,
NSString source,
NSString destination,
NSArray files,
NativeSizeByReference tag)
Performs the given file operation, blocking until complete. |
abstract NSString |
preferredFilenameExtensionForType(NSString typeName)
Given a UTI, return the best file name extension to use when creating a file of that type, or nil for failure. |
abstract boolean |
selectFile_inFileViewerRootedAtPath(NSString fullPath,
NSString rootFullPath)
Activate the Finder and open a window selecting the file at the given path. |
abstract boolean |
setIcon_forFile_options(NSImage image,
NSString fullPath,
int options)
If image is not nil, this sets a custom icon for the file at the given path. |
static NSWorkspace |
sharedWorkspace()
Get the shared instance of NSWorkspace. |
abstract boolean |
showSearchResultsForQueryString(NSString queryString)
Displays a Spotlight search results window in Finder for the specified query string. |
abstract boolean |
type_conformsToType(NSString firstTypeName,
NSString secondTypeName)
Given two UTIs, return YES if the first "conforms to" to the second in the uniform type identifier hierarchy, NO otherwise. |
abstract NSString |
typeOfFile_error(NSString absoluteFilePath,
PointerByReference outError)
Given an absolute file path, return the uniform type identifier (UTI) of the file, if one can be determined. |
abstract boolean |
unmountAndEjectDeviceAtPath(NSString path)
Attempt to eject the volume mounted at the given path. |
abstract boolean |
unmountAndEjectDeviceAtURL_error(NSURL url,
PointerByReference error)
Same as unmountAndEjectDeviceAtPath, except it takes an NSURL and returns an NSError. |
abstract NSURL |
URLForApplicationToOpenURL(NSURL url)
Returns the URL to the default application that would be used to open the given URL, as if the file were double clicked in the Finder (for file URLs). |
abstract NSURL |
URLForApplicationWithBundleIdentifier(NSString bundleIdentifier)
Get the URL for the application with the given identifier. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.rococoa.ObjCObject |
---|
id |
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject |
---|
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone |
Constructor Detail |
---|
public NSWorkspace()
Method Detail |
---|
public NSDeprecated as_NSWorkspace_NSDeprecated()
public NSDesktopImages as_NSWorkspace_NSDesktopImages()
public static NSWorkspace sharedWorkspace()
+(NSWorkspace*)sharedWorkspace
public abstract NSNotificationCenter notificationCenter()
-(NSNotificationCenter*)notificationCenter
public abstract boolean openFile(NSString fullPath)
-(BOOL)openFile:(NSString*)
public abstract boolean openFile_withApplication(NSString fullPath, NSString appName)
-(BOOL)openFile:(NSString*) withApplication:(NSString*)
public abstract boolean openFile_withApplication_andDeactivate(NSString fullPath, NSString appName, boolean flag)
-(BOOL)openFile:(NSString*) withApplication:(NSString*) andDeactivate:(BOOL)
public abstract boolean openURL(NSURL url)
-(BOOL)openURL:(NSURL*)
public abstract boolean launchApplication(NSString appName)
-(BOOL)launchApplication:(NSString*)
public abstract NSRunningApplication launchApplicationAtURL_options_configuration_error(NSURL url, int options, NSDictionary configuration, PointerByReference error)
-(NSRunningApplication*)launchApplicationAtURL:(NSURL*) options:(NSWorkspaceLaunchOptions) configuration:(NSDictionary*) error:(NSError**)
options
- @see org.rococoa.cocoa.appkit.AppKitLibrary#NSWorkspaceLaunchOptionspublic abstract boolean launchApplication_showIcon_autolaunch(NSString appName, boolean showIcon, boolean autolaunch)
-(BOOL)launchApplication:(NSString*) showIcon:(BOOL) autolaunch:(BOOL)
public abstract NSString fullPathForApplication(NSString appName)
-(NSString*)fullPathForApplication:(NSString*)
public abstract boolean selectFile_inFileViewerRootedAtPath(NSString fullPath, NSString rootFullPath)
-(BOOL)selectFile:(NSString*) inFileViewerRootedAtPath:(NSString*)
public abstract void activateFileViewerSelectingURLs(NSArray fileURLs)
-(void)activateFileViewerSelectingURLs:(NSArray*)
public abstract boolean showSearchResultsForQueryString(NSString queryString)
-(BOOL)showSearchResultsForQueryString:(NSString*)
public abstract void noteFileSystemChanged(NSString path)
-(void)noteFileSystemChanged:(NSString*)
public abstract boolean getInfoForFile_application_type(NSString fullPath, PointerByReference appName, PointerByReference type)
-(BOOL)getInfoForFile:(NSString*) application:(NSString**) type:(NSString**)
public abstract boolean isFilePackageAtPath(NSString fullPath)
-(BOOL)isFilePackageAtPath:(NSString*)
public abstract NSImage iconForFile(NSString fullPath)
-(NSImage*)iconForFile:(NSString*)
public abstract NSImage iconForFiles(NSArray fullPaths)
-(NSImage*)iconForFiles:(NSArray*)
public abstract NSImage iconForFileType(NSString fileType)
-(NSImage*)iconForFileType:(NSString*)
public abstract boolean setIcon_forFile_options(NSImage image, NSString fullPath, int options)
-(BOOL)setIcon:(NSImage*) forFile:(NSString*) options:(NSWorkspaceIconCreationOptions)
options
- @see org.rococoa.cocoa.appkit.AppKitLibrary#NSWorkspaceIconCreationOptionspublic abstract NSArray fileLabels()
-(NSArray*)fileLabels
public abstract NSArray fileLabelColors()
-(NSArray*)fileLabelColors
public abstract boolean getFileSystemInfoForPath_isRemovable_isWritable_isUnmountable_description_type(NSString fullPath, boolean removableFlag, boolean writableFlag, boolean unmountableFlag, PointerByReference description, PointerByReference fileSystemType)
-(BOOL)getFileSystemInfoForPath:(NSString*) isRemovable:(BOOL*) isWritable:(BOOL*) isUnmountable:(BOOL*) description:(NSString**) type:(NSString**)
public abstract boolean performFileOperation_source_destination_files_tag(NSString operation, NSString source, NSString destination, NSArray files, NativeSizeByReference tag)
-(BOOL)performFileOperation:(NSString*) source:(NSString*) destination:(NSString*) files:(NSArray*) tag:(NSInteger*)
public abstract boolean unmountAndEjectDeviceAtPath(NSString path)
-(BOOL)unmountAndEjectDeviceAtPath:(NSString*)
public abstract boolean unmountAndEjectDeviceAtURL_error(NSURL url, PointerByReference error)
-(BOOL)unmountAndEjectDeviceAtURL:(NSURL*) error:(NSError**)
public abstract NSInteger extendPowerOffBy(NSInteger requested)
-(NSInteger)extendPowerOffBy:(NSInteger)
public abstract void hideOtherApplications()
-(void)hideOtherApplications
public abstract NSArray mountedLocalVolumePaths()
-(NSArray*)mountedLocalVolumePaths
public abstract NSArray mountedRemovableMedia()
-(NSArray*)mountedRemovableMedia
public abstract NSURL URLForApplicationWithBundleIdentifier(NSString bundleIdentifier)
-(NSURL*)URLForApplicationWithBundleIdentifier:(NSString*)
public abstract NSURL URLForApplicationToOpenURL(NSURL url)
-(NSURL*)URLForApplicationToOpenURL:(NSURL*)
public abstract NSString absolutePathForAppBundleWithIdentifier(NSString bundleIdentifier)
-(NSString*)absolutePathForAppBundleWithIdentifier:(NSString*)
public abstract boolean launchAppWithBundleIdentifier_options_additionalEventParamDescriptor_launchIdentifier(NSString bundleIdentifier, int options, NSAppleEventDescriptor descriptor, PointerByReference identifier)
-(BOOL)launchAppWithBundleIdentifier:(NSString*) options:(NSWorkspaceLaunchOptions) additionalEventParamDescriptor:(NSAppleEventDescriptor*) launchIdentifier:(NSNumber**)
options
- @see org.rococoa.cocoa.appkit.AppKitLibrary#NSWorkspaceLaunchOptionspublic abstract boolean openURLs_withAppBundleIdentifier_options_additionalEventParamDescriptor_launchIdentifiers(NSArray urls, NSString bundleIdentifier, int options, NSAppleEventDescriptor descriptor, PointerByReference identifiers)
-(BOOL)openURLs:(NSArray*) withAppBundleIdentifier:(NSString*) options:(NSWorkspaceLaunchOptions) additionalEventParamDescriptor:(NSAppleEventDescriptor*) launchIdentifiers:(NSArray**)
options
- @see org.rococoa.cocoa.appkit.AppKitLibrary#NSWorkspaceLaunchOptionspublic abstract NSArray launchedApplications()
-(NSArray*)launchedApplications
public abstract NSDictionary activeApplication()
-(NSDictionary*)activeApplication
public abstract NSString typeOfFile_error(NSString absoluteFilePath, PointerByReference outError)
-(NSString*)typeOfFile:(NSString*) error:(NSError**)
public abstract NSString localizedDescriptionForType(NSString typeName)
-(NSString*)localizedDescriptionForType:(NSString*)
public abstract NSString preferredFilenameExtensionForType(NSString typeName)
-(NSString*)preferredFilenameExtensionForType:(NSString*)
public abstract boolean filenameExtension_isValidForType(NSString filenameExtension, NSString typeName)
-(BOOL)filenameExtension:(NSString*) isValidForType:(NSString*)
public abstract boolean type_conformsToType(NSString firstTypeName, NSString secondTypeName)
-(BOOL)type:(NSString*) conformsToType:(NSString*)
public static NSWorkspace alloc()
public static NSWorkspace new_()
public static NSWorkspace._class_ getNSClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |