org.rococoa.cocoa.appkit
Class NSWorkspace
java.lang.Object
org.rococoa.cocoa.foundation.NSObject
org.rococoa.cocoa.appkit.NSWorkspace
- All Implemented Interfaces:
- ABActionDelegate, AMWorkflowControllerDelegate, IMVideoDataSource, NSAccessibility, NSAccessibilityAdditions, NSAnimationDelegate, NSApplicationScriptingDelegation, NSArchiverCallback, NSBrowserDelegate, NSClassDescriptionPrimitives, NSCoderMethods, NSColorPanelResponderMethod, NSComboBoxCellDataSource, NSComboBoxDataSource, NSComboBoxNotifications, NSComparisonMethods, NSConnectionDelegateMethods, NSControlSubclassDelegate, NSControlSubclassNotifications, NSCopyLinkMoveHandler, NSDatePickerCellDelegate, NSDelayedPerforming, NSDeprecatedKeyValueCoding, NSDeprecatedKeyValueObservingCustomization, NSDeprecatedMethods, NSDictionaryControllerKeyValuePair, NSDistantObjectRequestMethods, NSDistributedObjects, NSDraggingDestination, NSDraggingSource, NSDrawerDelegate, NSDrawerNotifications, NSEditor, NSEditorRegistration, NSErrorRecoveryAttempting, NSExceptionHandlerDelegate, NSFileManagerFileOperationAdditions, NSFontManagerDelegate, NSFontManagerResponderMethod, NSFontPanelValidationAdditions, NSImageDelegate, NSKeyedArchiverDelegate, NSKeyedArchiverObjectSubstitution, NSKeyedUnarchiverDelegate, NSKeyedUnarchiverObjectSubstitution, NSKeyValueBindingCreation, NSKeyValueCoding, NSKeyValueObserverNotification, NSKeyValueObserverRegistration, NSKeyValueObserving, NSKeyValueObservingCustomization, NSLayoutManagerDelegate, NSMenuDelegate, NSMenuValidation, NSMetadataQueryDelegate, NSNetServiceBrowserDelegateMethods, NSNetServiceDelegateMethods, NSNibAwaking, NSOutlineViewDataSource, NSOutlineViewDelegate, NSOutlineViewNotifications, NSPasteboardOwner, NSPlaceholders, NSPortDelegateMethods, NSRuleEditorDelegateMethods, NSSavePanelDelegate, NSScriptClassDescription, NSScripting, NSScriptingComparisonMethods, NSScriptKeyValueCoding, NSScriptObjectSpecifiers, NSSoundDelegateMethods, NSSpeechRecognizerDelegate, NSSpeechSynthesizerDelegate, NSSpellServerDelegate, NSSplitViewDelegate, NSStreamDelegateEventExtensions, NSTabViewDelegate, NSTextDelegate, NSTextViewDelegate, NSThreadPerformAdditions, NSTokenFieldCellDelegate, NSTokenFieldDelegate, NSToolbarDelegate, NSToolbarNotifications, NSURLClient, NSURLConnectionDelegate, NSURLDownloadDelegate, NSWindowDelegate, NSWindowNotifications, NSXMLParserDelegateEventAdditions, QTCaptureDecompressedVideoOutputDelegate, QTCaptureFileOutputDelegate, QTCaptureVideoPreviewOutputDelegate, QTCaptureViewDelegate, QTMovieDelegate, QTMovieViewDelegate, SFAuthorizationViewDelegate, SFCertificatePanelDelegate, SFChooseIdentityPanelDelegate, WebDownloadDelegate, WebFrameLoadDelegate, WebJavaPlugIn, WebPlugIn, WebPlugInContainer, WebPolicyDelegate, WebResourceLoadDelegate, WebScripting, WebUIDelegate, WebViewEditingDelegate, NSObject
public abstract class NSWorkspace
- extends NSObject
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.
Method Summary |
abstract NSString |
absolutePathForAppBundleWithIdentifier(NSString bundleIdentifier)
|
abstract NSDictionary |
activeApplication()
Original signature : -(NSDictionary*)activeApplication
Returns a dictionary with information about the current active application. |
static NSWorkspace |
alloc()
|
abstract void |
checkForRemovableMedia()
|
abstract int |
extendPowerOffBy(int requested)
|
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 boolean |
fileSystemChanged()
|
abstract void |
findApplications()
|
abstract NSString |
fullPathForApplication(NSString appName)
|
abstract boolean |
getFileSystemInfoForPath_isRemovable_isWritable_isUnmountable_description_type(NSString fullPath,
boolean removableFlag,
boolean writableFlag,
boolean unmountableFlag,
PointerByReference description,
PointerByReference fileSystemType)
|
abstract boolean |
getInfoForFile_application_type(NSString fullPath,
PointerByReference appName,
PointerByReference type)
|
abstract void |
hideOtherApplications()
|
abstract NSImage |
iconForFile(NSString fullPath)
|
abstract NSImage |
iconForFiles(NSArray fullPaths)
|
abstract NSImage |
iconForFileType(NSString fileType)
|
abstract boolean |
isFilePackageAtPath(NSString fullPath)
|
abstract boolean |
launchApplication_showIcon_autolaunch(NSString appName,
boolean showIcon,
boolean autolaunch)
|
abstract boolean |
launchApplication(NSString appName)
|
abstract boolean |
launchAppWithBundleIdentifier_options_additionalEventParamDescriptor_launchIdentifier(NSString bundleIdentifier,
int options,
NSAppleEventDescriptor descriptor,
PointerByReference identifier)
Original signature : -(BOOL)launchAppWithBundleIdentifier:(NSString*) options:(NSWorkspaceLaunchOptions) additionalEventParamDescriptor:(NSAppleEventDescriptor*) launchIdentifier:(NSNumber**)
|
abstract NSArray |
launchedApplications()
Original signature : -(NSArray*)launchedApplications
Returns an array of dictionaries, one for each running application. |
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()
|
abstract NSArray |
mountedRemovableMedia()
|
abstract NSArray |
mountNewRemovableMedia()
|
abstract void |
noteFileSystemChanged()
|
abstract void |
noteFileSystemChanged(NSString path)
|
abstract void |
noteUserDefaultsChanged()
|
abstract NSNotificationCenter |
notificationCenter()
|
abstract boolean |
openFile_withApplication_andDeactivate(NSString fullPath,
NSString appName,
boolean flag)
|
abstract boolean |
openFile_withApplication(NSString fullPath,
NSString appName)
|
abstract boolean |
openFile(NSString fullPath)
|
abstract boolean |
openTempFile(NSString fullPath)
|
abstract boolean |
openURL(NSURL url)
|
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**)
|
abstract boolean |
performFileOperation_source_destination_files_tag(NSString operation,
NSString source,
NSString destination,
NSArray files,
IntBuffer tag)
Original signature : -(BOOL)performFileOperation:(NSString*) source:(NSString*) destination:(NSString*) files:(NSArray*) tag:(NSInteger*)
Returned tag < 0 on failure, 0 if sync, > 0 if async |
abstract boolean |
performFileOperation_source_destination_files_tag(NSString operation,
NSString source,
NSString destination,
NSArray files,
IntByReference tag)
Deprecated. use the safer method performFileOperation_source_destination_files_tag(org.rococoa.cocoa.foundation.NSString, org.rococoa.cocoa.foundation.NSString, org.rococoa.cocoa.foundation.NSString, org.rococoa.cocoa.foundation.NSArray, java.nio.IntBuffer) instead |
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)
|
abstract boolean |
setIcon_forFile_options(NSImage image,
NSString fullPath,
int options)
Original signature : -(BOOL)setIcon:(NSImage*) forFile:(NSString*) options:(NSWorkspaceIconCreationOptions)
|
static NSWorkspace |
sharedWorkspace()
|
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)
|
abstract boolean |
userDefaultsChanged()
|
Methods inherited from class org.rococoa.cocoa.foundation.NSObject |
copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardInvocation, id, init, isKindOfClass, isKindOfClass, methodSignatureForSelector, mutableCopy, release, retain, retainCount |
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject |
autorelease, class_, conformsToProtocol, hash, isEqual, isKindOfClass, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebUIDelegate |
webView_contextMenuItemsForElement_defaultMenuItems, webView_createWebViewModalDialogWithRequest, webView_createWebViewWithRequest, webView_dragDestinationActionMaskForDraggingInfo, webView_dragDestinationActionMaskForDraggingInfo, webView_makeFirstResponder, webView_mouseDidMoveOverElement_modifierFlags, webView_printFrameView, webView_runBeforeUnloadConfirmPanelWithMessage_initiatedByFrame, webView_runJavaScriptAlertPanelWithMessage_initiatedByFrame, webView_runJavaScriptAlertPanelWithMessage, webView_runJavaScriptConfirmPanelWithMessage_initiatedByFrame, webView_runJavaScriptConfirmPanelWithMessage, webView_runJavaScriptTextInputPanelWithPrompt_defaultText_initiatedByFrame, webView_runJavaScriptTextInputPanelWithPrompt_defaultText, webView_runOpenPanelForFileButtonWithResultListener, webView_runOpenPanelForFileButtonWithResultListener, webView_setResizable, webView_setStatusBarVisible, webView_setStatusText, webView_setToolbarsVisible, webView_shouldPerformAction_fromSender, webView_validateUserInterfaceItem_defaultValidation, webView_validateUserInterfaceItem_defaultValidation, webView_willPerformDragDestinationAction_forDraggingInfo, webView_willPerformDragDestinationAction_forDraggingInfo, webViewAreToolbarsVisible, webViewClose, webViewContentRect, webViewFirstResponder, webViewFocus, webViewFooterHeight, webViewFrame, webViewHeaderHeight, webViewIsResizable, webViewIsStatusBarVisible, webViewRunModal, webViewShow, webViewStatusText, webViewUnfocus |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSBrowserDelegate |
browser_acceptDrop_atRow_column_dropOperation, browser_acceptDrop_atRow_column_dropOperation, browser_canDragRowsWithIndexes_inColumn_withEvent, browser_createRowsForColumn_inMatrix, browser_isColumnValid, browser_namesOfPromisedFilesDroppedAtDestination_forDraggedRowsWithIndexes_inColumn, browser_nextTypeSelectMatchFromRow_toRow_inColumn_forString, browser_numberOfRowsInColumn, browser_selectCellWithString_inColumn, browser_selectRow_inColumn, browser_shouldShowCellExpansionForRow_column, browser_shouldSizeColumn_forUserResize_toWidth, browser_shouldTypeSelectForEvent_withCurrentSearchString, browser_sizeToFitWidthOfColumn, browser_titleOfColumn, browser_typeSelectStringForRow_inColumn, browser_validateDrop_proposedRow_column_dropOperation, browser_validateDrop_proposedRow_column_dropOperation, browser_willDisplayCell_atRow_column, browser_writeRowsWithIndexes_inColumn_toPasteboard, browserColumnConfigurationDidChange, browserDidScroll, browserWillScroll |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSKeyValueCoding |
dictionaryWithValuesForKeys, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, setNilValueForKey, setValue_forKey, setValue_forKeyPath, setValue_forUndefinedKey, setValuesForKeysWithDictionary, validateValue_forKey_error, validateValue_forKeyPath_error, valueForKey, valueForKeyPath, valueForUndefinedKey |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSOutlineViewDelegate |
outlineView_dataCellForTableColumn_item, outlineView_didClickTableColumn, outlineView_didDragTableColumn, outlineView_heightOfRowByItem, outlineView_isGroupItem, outlineView_mouseDownInHeaderOfTableColumn, outlineView_nextTypeSelectMatchFromItem_toItem_forString, outlineView_selectionIndexesForProposedSelection, outlineView_shouldCollapseItem, outlineView_shouldEditTableColumn_item, outlineView_shouldExpandItem, outlineView_shouldSelectItem, outlineView_shouldSelectTableColumn, outlineView_shouldShowCellExpansionForTableColumn_item, outlineView_shouldTrackCell_forTableColumn_item, outlineView_shouldTypeSelectForEvent_withCurrentSearchString, outlineView_typeSelectStringForTableColumn_item, outlineView_willDisplayCell_forTableColumn_item, outlineView_willDisplayOutlineCell_forTableColumn_item, selectionShouldChangeInOutlineView |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebViewEditingDelegate |
undoManagerForWebView, webView_doCommandBySelector, webView_shouldApplyStyle_toElementsInDOMRange, webView_shouldBeginEditingInDOMRange, webView_shouldChangeTypingStyle_toStyle, webView_shouldDeleteDOMRange, webView_shouldEndEditingInDOMRange, webView_shouldInsertNode_replacingDOMRange_givenAction, webView_shouldInsertText_replacingDOMRange_givenAction, webViewDidBeginEditing, webViewDidChange, webViewDidChangeSelection, webViewDidChangeTypingStyle, webViewDidEndEditing |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebFrameLoadDelegate |
webView_didCancelClientRedirectForFrame, webView_didChangeLocationWithinPageForFrame, webView_didClearWindowObject_forFrame, webView_didCommitLoadForFrame, webView_didFailLoadWithError_forFrame, webView_didFailProvisionalLoadWithError_forFrame, webView_didFinishLoadForFrame, webView_didReceiveIcon_forFrame, webView_didReceiveServerRedirectForProvisionalLoadForFrame, webView_didReceiveTitle_forFrame, webView_didStartProvisionalLoadForFrame, webView_willCloseFrame, webView_windowScriptObjectAvailable |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSTokenFieldDelegate |
tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenField_displayStringForRepresentedObject, tokenField_editingStringForRepresentedObject, tokenField_hasMenuForRepresentedObject, tokenField_menuForRepresentedObject, tokenField_readFromPasteboard, tokenField_representedObjectForEditingString, tokenField_shouldAddObjects_atIndex, tokenField_styleForRepresentedObject, tokenField_writeRepresentedObjects_toPasteboard |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSXMLParserDelegateEventAdditions |
parser_didEndElement_namespaceURI_qualifiedName, parser_didEndMappingPrefix, parser_didStartElement_namespaceURI_qualifiedName_attributes, parser_didStartMappingPrefix_toURI, parser_foundAttributeDeclarationWithName_forElement_type_defaultValue, parser_foundCDATA, parser_foundCharacters, parser_foundComment, parser_foundElementDeclarationWithName_model, parser_foundExternalEntityDeclarationWithName_publicID_systemID, parser_foundIgnorableWhitespace, parser_foundInternalEntityDeclarationWithName_value, parser_foundNotationDeclarationWithName_publicID_systemID, parser_foundProcessingInstructionWithTarget_data, parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName, parser_parseErrorOccurred, parser_resolveExternalEntityName_systemID, parser_validationErrorOccurred, parserDidEndDocument, parserDidStartDocument |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSDraggingDestination |
concludeDragOperation, concludeDragOperation, draggingEnded, draggingEnded, draggingEntered, draggingEntered, draggingExited, draggingExited, draggingUpdated, draggingUpdated, performDragOperation, performDragOperation, prepareForDragOperation, prepareForDragOperation, wantsPeriodicDraggingUpdates |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSOutlineViewDataSource |
outlineView_acceptDrop_item_childIndex, outlineView_acceptDrop_item_childIndex, outlineView_child_ofItem, outlineView_isItemExpandable, outlineView_itemForPersistentObject, outlineView_namesOfPromisedFilesDroppedAtDestination_forDraggedItems, outlineView_numberOfChildrenOfItem, outlineView_objectValueForTableColumn_byItem, outlineView_persistentObjectForItem, outlineView_setObjectValue_forTableColumn_byItem, outlineView_sortDescriptorsDidChange, outlineView_validateDrop_proposedItem_proposedChildIndex, outlineView_validateDrop_proposedItem_proposedChildIndex, outlineView_writeItems_toPasteboard |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSURLDownloadDelegate |
download_decideDestinationWithSuggestedFilename, download_didCancelAuthenticationChallenge, download_didCreateDestination, download_didFailWithError, download_didReceiveAuthenticationChallenge, download_didReceiveDataOfLength, download_didReceiveResponse, download_shouldDecodeSourceDataOfMIMEType, download_willResumeWithResponse_fromByte, download_willSendRequest_redirectResponse, downloadDidBegin, downloadDidFinish |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSAccessibility |
accessibilityActionDescription, accessibilityActionNames, accessibilityAttributeNames, accessibilityAttributeValue_forParameter, accessibilityAttributeValue, accessibilityFocusedUIElement, accessibilityIsAttributeSettable, accessibilityIsIgnored, accessibilityParameterizedAttributeNames, accessibilityPerformAction, accessibilitySetValue_forAttribute |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSTextViewDelegate |
textView_clickedOnLink_atIndex, textView_clickedOnLink, textView_doCommandBySelector, textView_menu_forEvent_atIndex, textView_shouldChangeTextInRanges_replacementStrings, textView_shouldChangeTypingAttributes_toAttributes, textView_willChangeSelectionFromCharacterRanges_toCharacterRanges, textView_willDisplayToolTip_forCharacterAtIndex, textView_writablePasteboardTypesForCell_atIndex, textView_writablePasteboardTypesForCell_atIndex, textView_writeCell_atIndex_toPasteboard_type, textView_writeCell_atIndex_toPasteboard_type, textViewDidChangeSelection, textViewDidChangeTypingAttributes, undoManagerForTextView |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSTokenFieldCellDelegate |
tokenFieldCell_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenFieldCell_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenFieldCell_displayStringForRepresentedObject, tokenFieldCell_editingStringForRepresentedObject, tokenFieldCell_hasMenuForRepresentedObject, tokenFieldCell_menuForRepresentedObject, tokenFieldCell_readFromPasteboard, tokenFieldCell_representedObjectForEditingString, tokenFieldCell_shouldAddObjects_atIndex, tokenFieldCell_styleForRepresentedObject, tokenFieldCell_writeRepresentedObjects_toPasteboard |
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSWindowNotifications |
windowDidBecomeKey, windowDidBecomeMain, windowDidChangeScreen, windowDidChangeScreenProfile, windowDidDeminiaturize, windowDidEndSheet, windowDidExpose, windowDidMiniaturize, windowDidMove, windowDidResignKey, windowDidResignMain, windowDidResize, windowDidUpdate, windowWillBeginSheet, windowWillClose, windowWillMiniaturize, windowWillMove |
NSWorkspace
public NSWorkspace()
sharedWorkspace
public static NSWorkspace sharedWorkspace()
notificationCenter
public abstract NSNotificationCenter notificationCenter()
openFile
public abstract boolean openFile(NSString fullPath)
openFile_withApplication
public abstract boolean openFile_withApplication(NSString fullPath,
NSString appName)
openFile_withApplication_andDeactivate
public abstract boolean openFile_withApplication_andDeactivate(NSString fullPath,
NSString appName,
boolean flag)
openTempFile
public abstract boolean openTempFile(NSString fullPath)
openURL
public abstract boolean openURL(NSURL url)
launchApplication
public abstract boolean launchApplication(NSString appName)
launchApplication_showIcon_autolaunch
public abstract boolean launchApplication_showIcon_autolaunch(NSString appName,
boolean showIcon,
boolean autolaunch)
fullPathForApplication
public abstract NSString fullPathForApplication(NSString appName)
selectFile_inFileViewerRootedAtPath
public abstract boolean selectFile_inFileViewerRootedAtPath(NSString fullPath,
NSString rootFullpath)
findApplications
public abstract void findApplications()
noteFileSystemChanged
public abstract void noteFileSystemChanged()
noteFileSystemChanged
public abstract void noteFileSystemChanged(NSString path)
fileSystemChanged
public abstract boolean fileSystemChanged()
noteUserDefaultsChanged
public abstract void noteUserDefaultsChanged()
userDefaultsChanged
public abstract boolean userDefaultsChanged()
getInfoForFile_application_type
public abstract boolean getInfoForFile_application_type(NSString fullPath,
PointerByReference appName,
PointerByReference type)
isFilePackageAtPath
public abstract boolean isFilePackageAtPath(NSString fullPath)
iconForFile
public abstract NSImage iconForFile(NSString fullPath)
iconForFiles
public abstract NSImage iconForFiles(NSArray fullPaths)
iconForFileType
public abstract NSImage iconForFileType(NSString fileType)
setIcon_forFile_options
public abstract boolean setIcon_forFile_options(NSImage image,
NSString fullPath,
int options)
- Original signature :
-(BOOL)setIcon:(NSImage*) forFile:(NSString*) options:(NSWorkspaceIconCreationOptions)
- Parameters:
options
- @see org.rococoa.cocoa.appkit.AppKitLibrary#NSWorkspaceIconCreationOptions
getFileSystemInfoForPath_isRemovable_isWritable_isUnmountable_description_type
public abstract boolean getFileSystemInfoForPath_isRemovable_isWritable_isUnmountable_description_type(NSString fullPath,
boolean removableFlag,
boolean writableFlag,
boolean unmountableFlag,
PointerByReference description,
PointerByReference fileSystemType)
performFileOperation_source_destination_files_tag
@Deprecated
public abstract boolean performFileOperation_source_destination_files_tag(NSString operation,
NSString source,
NSString destination,
NSArray files,
IntByReference tag)
- Deprecated. use the safer method
performFileOperation_source_destination_files_tag(org.rococoa.cocoa.foundation.NSString, org.rococoa.cocoa.foundation.NSString, org.rococoa.cocoa.foundation.NSString, org.rococoa.cocoa.foundation.NSArray, java.nio.IntBuffer)
instead
- Original signature :
-(BOOL)performFileOperation:(NSString*) source:(NSString*) destination:(NSString*) files:(NSArray*) tag:(NSInteger*)
Returned tag < 0 on failure, 0 if sync, > 0 if async
performFileOperation_source_destination_files_tag
public abstract boolean performFileOperation_source_destination_files_tag(NSString operation,
NSString source,
NSString destination,
NSArray files,
IntBuffer tag)
- Original signature :
-(BOOL)performFileOperation:(NSString*) source:(NSString*) destination:(NSString*) files:(NSArray*) tag:(NSInteger*)
Returned tag < 0 on failure, 0 if sync, > 0 if async
unmountAndEjectDeviceAtPath
public abstract boolean unmountAndEjectDeviceAtPath(NSString path)
extendPowerOffBy
public abstract int extendPowerOffBy(int requested)
hideOtherApplications
public abstract void hideOtherApplications()
mountedLocalVolumePaths
public abstract NSArray mountedLocalVolumePaths()
mountedRemovableMedia
public abstract NSArray mountedRemovableMedia()
mountNewRemovableMedia
public abstract NSArray mountNewRemovableMedia()
checkForRemovableMedia
public abstract void checkForRemovableMedia()
absolutePathForAppBundleWithIdentifier
public abstract NSString absolutePathForAppBundleWithIdentifier(NSString bundleIdentifier)
launchAppWithBundleIdentifier_options_additionalEventParamDescriptor_launchIdentifier
public abstract boolean launchAppWithBundleIdentifier_options_additionalEventParamDescriptor_launchIdentifier(NSString bundleIdentifier,
int options,
NSAppleEventDescriptor descriptor,
PointerByReference identifier)
- Original signature :
-(BOOL)launchAppWithBundleIdentifier:(NSString*) options:(NSWorkspaceLaunchOptions) additionalEventParamDescriptor:(NSAppleEventDescriptor*) launchIdentifier:(NSNumber**)
- Parameters:
options
- @see org.rococoa.cocoa.appkit.AppKitLibrary#NSWorkspaceLaunchOptions
openURLs_withAppBundleIdentifier_options_additionalEventParamDescriptor_launchIdentifiers
public 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**)
- Parameters:
options
- @see org.rococoa.cocoa.appkit.AppKitLibrary#NSWorkspaceLaunchOptions
launchedApplications
public abstract NSArray launchedApplications()
- Original signature :
-(NSArray*)launchedApplications
Returns an array of dictionaries, one for each running application.
activeApplication
public abstract NSDictionary activeApplication()
- Original signature :
-(NSDictionary*)activeApplication
Returns a dictionary with information about the current active application.
typeOfFile_error
public 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. Otherwise, return nil after setting *outError to an NSError that encapsulates the reason why the file's type could not be determined. If the file at the end of the path is a symbolic link the type of the symbolic link will be returned.
You can invoke this method to get the UTI of an existing file.
Original signature : -(NSString*)typeOfFile:(NSString*) error:(NSError**)
localizedDescriptionForType
public 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.
You can invoke this method to get the name of a type that must be shown to the user, in an alert about your application's inability to handle the type, for instance.
Original signature : -(NSString*)localizedDescriptionForType:(NSString*)
preferredFilenameExtensionForType
public 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.
You can invoke this method when your application has only the base name of a file that's being written and it has to append a file name extension so that the file's type can be reliably identified later on.
Original signature : -(NSString*)preferredFilenameExtensionForType:(NSString*)
filenameExtension_isValidForType
public 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.
You can invoke this method when your application needs to check if a file name extension can be used to reliably identify the type later on. For example, NSSavePanel uses this method to validate any extension that the user types in the panel's file name field.
Original signature : -(BOOL)filenameExtension:(NSString*) isValidForType:(NSString*)
type_conformsToType
public 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. This method will always return YES if the two strings are equal, so you can also use it with other kinds of type name, including those declared in CFBundleTypeName Info.plist entries in apps that don't take advantage of the support for UTIs that was added to Cocoa in Mac OS 10.5.
You can invoke this method when your application must determine whether it can handle a file of a known type, returned by -typeOfFile:error: for instance.
Use this method instead of merely comparing UTIs for equality.
Original signature : -(BOOL)type:(NSString*) conformsToType:(NSString*)
alloc
public static NSWorkspace alloc()