Share via


NSWorkspace Class

Definition

[Foundation.Register("NSWorkspace", true)]
public class NSWorkspace : Foundation.NSObject
[<Foundation.Register("NSWorkspace", true)>]
type NSWorkspace = class
    inherit NSObject
Inheritance
NSWorkspace
Attributes

Constructors

Name Description
NSWorkspace()

Creates a new NSWorkspace with default values.

NSWorkspace(NativeHandle)

A constructor used when creating managed representations of unmanaged objects. Called by the runtime.

NSWorkspace(NSObjectFlag)

Constructor to call on derived classes to skip initialization and merely allocate the object.

Properties

Name Description
AccessibilityDisplayShouldDifferentiateWithoutColor
AccessibilityDisplayShouldIncreaseContrast
AccessibilityDisplayShouldInvertColors
AccessibilityDisplayShouldReduceMotion
AccessibilityDisplayShouldReduceTransparency
ActiveApplication
ActiveSpaceDidChangeNotification

Notification constant for ActiveSpaceDidChange

Class (Inherited from NSObject)
ClassHandle

The Objective-C class handle for this class.

DebugDescription (Inherited from NSObject)
Description (Inherited from NSObject)
DidActivateApplicationNotification

Notification constant for DidActivateApplication

DidChangeFileLabelsNotification

Notification constant for DidChangeFileLabels

DidDeactivateApplicationNotification

Notification constant for DidDeactivateApplication

DidHideApplicationNotification

Notification constant for DidHideApplication

DidLaunchApplicationNotification

Notification constant for DidLaunchApplication

DidMountNotification

Notification constant for DidMount

DidPerformFileOperationNotification

Notification constant for DidPerformFileOperation

DidRenameVolumeNotification

Notification constant for DidRenameVolume

DidTerminateApplicationNotification

Notification constant for DidTerminateApplication

DidUnhideApplicationNotification

Notification constant for DidUnhideApplication

DidUnmountNotification

Notification constant for DidUnmount

DidWakeNotification

Notification constant for DidWake

DisplayOptionsDidChangeNotification

Notification constant for DisplayOptionsDidChange

ExposedBindings (Inherited from NSObject)
FileLabelColors
FileLabels
FrontmostApplication
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from NSObject)
IsDirectBinding (Inherited from NSObject)
IsProxy (Inherited from NSObject)
LaunchConfigurationAppleEvent
LaunchConfigurationArchitecture
LaunchConfigurationArguments
LaunchConfigurationEnvironment
LaunchedApplications
MenuBarOwningApplication
MountedLocalVolumePaths
MountedRemovableMedia
NotificationCenter
OperationCopy
OperationDestroy
OperationDuplicate
OperationLink
OperationMove
OperationRecycle
RetainCount (Inherited from NSObject)
RunningApplications
ScreensDidSleepNotification

Notification constant for ScreensDidSleep

ScreensDidWakeNotification

Notification constant for ScreensDidWake

Self (Inherited from NSObject)
SessionDidBecomeActiveNotification

Notification constant for SessionDidBecomeActive

SessionDidResignActiveNotification

Notification constant for SessionDidResignActive

SharedWorkspace
Superclass (Inherited from NSObject)
SuperHandle

Handle used to represent the methods in the base class for this NSObject.

(Inherited from NSObject)
SwitchControlEnabled
VoiceOverEnabled
WillLaunchApplication

Notification constant for WillLaunchApplication

WillPowerOffNotification

Notification constant for WillPowerOff

WillSleepNotification

Notification constant for WillSleep

WillUnmountNotification

Notification constant for WillUnmount

Zone (Inherited from NSObject)

Methods

Name Description
AbsolutePathForAppBundle(String)
ActivateFileViewer(NSUrl[])
AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr) (Inherited from NSObject)
AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr) (Inherited from NSObject)
AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registers an object for being observed externally using an arbitrary method.

(Inherited from NSObject)
AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>)

Registers an object for being observed externally using an arbitrary method.

(Inherited from NSObject)
AwakeFromNib() (Inherited from NSObject)
BeginInvokeOnMainThread(Action) (Inherited from NSObject)
BeginInvokeOnMainThread(Selector, NSObject)

Invokes asynchrously the specified code on the main UI thread.

(Inherited from NSObject)
Bind(NSString, NSObject, String, NSBindingOptions) (Inherited from NSObject)
Bind(NSString, NSObject, String, NSDictionary) (Inherited from NSObject)
CommitEditing() (Inherited from NSObject)
CommitEditing(NSObject, Selector, IntPtr) (Inherited from NSObject)
ConformsToProtocol(NativeHandle) (Inherited from NSObject)
Copy() (Inherited from NSObject)
DangerousAutorelease()

Calls the 'autorelease' selector on this object.

(Inherited from NSObject)
DangerousRelease()

Calls the 'release' selector on this object.

(Inherited from NSObject)
DangerousRetain()

Calls the 'retain' selector on this object.

(Inherited from NSObject)
DesktopImageOptions(NSScreen)
DesktopImageUrl(NSScreen)
DidChange(NSKeyValueChange, NSIndexSet, NSString) (Inherited from NSObject)
DidChange(NSString, NSKeyValueSetMutationKind, NSSet) (Inherited from NSObject)
DidChangeValue(String) (Inherited from NSObject)
Dispose()

Releases the resources used by the NSObject object.

(Inherited from NSObject)
Dispose(Boolean)

Releases the resources used by the NSObject object.

(Inherited from NSObject)
DoesNotRecognizeSelector(Selector) (Inherited from NSObject)
DuplicateUrls(NSArray, NSWorkspaceUrlHandler)
Equals(NSObject) (Inherited from NSObject)
Equals(Object) (Inherited from NSObject)
ExtendPowerOffBy(IntPtr)
FullPathForApplication(String)
GetBindingInfo(NSString) (Inherited from NSObject)
GetBindingOptionDescriptions(NSString) (Inherited from NSObject)
GetBindingValueClass(NSString) (Inherited from NSObject)
GetDictionaryOfValuesFromKeys(NSString[]) (Inherited from NSObject)
GetFileSystemInfo(String, Boolean, Boolean, Boolean, String, String)
GetHashCode()

Generates a hash code for the current instance.

(Inherited from NSObject)
GetIcon(UTType)
GetInfo(String, String, String)
GetMethodForSelector(Selector) (Inherited from NSObject)
GetNativeHash() (Inherited from NSObject)
GetUrlForApplicationToOpenContentType(UTType)
GetUrlsForApplications(NSUrl)
GetUrlsForApplications(String)
GetUrlsForApplicationsToOpenContentType(UTType)
HideOtherApplications()
IconForFile(String)
IconForFiles(String[])
IconForFileType(HfsTypeCode)
IconForFileType(String)
Init() (Inherited from NSObject)
InitializeHandle(NativeHandle, String) (Inherited from NSObject)
InitializeHandle(NativeHandle) (Inherited from NSObject)
Invoke(Action, Double) (Inherited from NSObject)
Invoke(Action, TimeSpan) (Inherited from NSObject)
InvokeOnMainThread(Action) (Inherited from NSObject)
InvokeOnMainThread(Selector, NSObject)

Invokes synchrously the specified code on the main UI thread.

(Inherited from NSObject)
IsEqual(NSObject) (Inherited from NSObject)
IsFilenameExtensionValid(String, String)
IsFilePackage(String)
IsKindOfClass(Class) (Inherited from NSObject)
IsMemberOfClass(Class) (Inherited from NSObject)
LaunchApp(String, NSWorkspaceLaunchOptions, NSAppleEventDescriptor, IntPtr)
LaunchApplication(NSUrl, NSWorkspaceLaunchOptions, NSDictionary, NSError)
LaunchApplication(String, Boolean, Boolean)
LaunchApplication(String)
LocalizedDescription(String)
MarkDirty()

Promotes a regular peer object (IsDirectBinding is true) into a toggleref object.

(Inherited from NSObject)
MutableCopy() (Inherited from NSObject)
NoteFileSystemChanged(String)
ObjectDidEndEditing(NSObject) (Inherited from NSObject)
ObserveValue(NSString, NSObject, NSDictionary, IntPtr) (Inherited from NSObject)
OpenApplication(NSUrl, NSWorkspaceOpenConfiguration, Action<NSRunningApplication,NSError>)
OpenApplicationAsync(NSUrl, NSWorkspaceOpenConfiguration)
OpenFile(String, NSImage, CGPoint, NSView)
OpenFile(String, String, Boolean)
OpenFile(String, String)
OpenFile(String)
OpenUrl(NSUrl, NSWorkspaceLaunchOptions, NSDictionary, NSError)
OpenUrl(NSUrl, NSWorkspaceOpenConfiguration, Action<NSRunningApplication,NSError>)
OpenUrl(NSUrl)
OpenUrlAsync(NSUrl, NSWorkspaceOpenConfiguration)
OpenUrls(NSUrl[], NSUrl, NSWorkspaceLaunchOptions, NSDictionary, NSError)
OpenUrls(NSUrl[], NSUrl, NSWorkspaceOpenConfiguration, Action<NSRunningApplication,NSError>)
OpenUrls(NSUrl[], String, NSWorkspaceLaunchOptions, NSAppleEventDescriptor, String[])
OpenUrls(NSUrl[], String, NSWorkspaceLaunchOptions, NSAppleEventDescriptor)
OpenUrlsAsync(NSUrl[], NSUrl, NSWorkspaceOpenConfiguration)
PerformFileOperation(NSString, String, String, String[], IntPtr)
PerformSelector(Selector, NSObject, Double, NSString[]) (Inherited from NSObject)
PerformSelector(Selector, NSObject, Double) (Inherited from NSObject)
PerformSelector(Selector, NSObject, NSObject) (Inherited from NSObject)
PerformSelector(Selector, NSObject) (Inherited from NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) (Inherited from NSObject)
PerformSelector(Selector, NSThread, NSObject, Boolean) (Inherited from NSObject)
PerformSelector(Selector) (Inherited from NSObject)
PreferredFilenameExtension(String)
PrepareForInterfaceBuilder() (Inherited from NSObject)
RecycleUrls(NSArray, NSWorkspaceUrlHandler)
RemoveObserver(NSObject, NSString, IntPtr) (Inherited from NSObject)
RemoveObserver(NSObject, NSString) (Inherited from NSObject)
RemoveObserver(NSObject, String, IntPtr) (Inherited from NSObject)
RemoveObserver(NSObject, String) (Inherited from NSObject)
RequestAuthorization(NSWorkspaceAuthorizationType, Action<NSWorkspaceAuthorization,NSError>)
RespondsToSelector(Selector) (Inherited from NSObject)
SelectFile(String, String)
SetDefaultApplicationToOpenContentType(NSUrl, NSUrl, Action<NSError>)
SetDefaultApplicationToOpenContentType(NSUrl, UTType, Action<NSError>)
SetDefaultApplicationToOpenContentTypeAsync(NSUrl, NSUrl)
SetDefaultApplicationToOpenContentTypeAsync(NSUrl, UTType)
SetDefaultApplicationToOpenFile(NSUrl, NSUrl, Action<NSError>)
SetDefaultApplicationToOpenFileAsync(NSUrl, NSUrl)
SetDefaultApplicationToOpenUrls(NSUrl, String, Action<NSError>)
SetDefaultApplicationToOpenUrlsAsync(NSUrl, String)
SetDesktopImageUrl(NSUrl, NSScreen, NSDictionary, NSError)
SetIconforFile(NSImage, String, NSWorkspaceIconCreationOptions)
SetNilValueForKey(NSString) (Inherited from NSObject)
SetValueForKey(NSObject, NSString) (Inherited from NSObject)
SetValueForKeyPath(NativeHandle, NSString) (Inherited from NSObject)
SetValueForKeyPath(NSObject, NSString) (Inherited from NSObject)
SetValueForUndefinedKey(NSObject, NSString) (Inherited from NSObject)
SetValuesForKeysWithDictionary(NSDictionary) (Inherited from NSObject)
ShowSearchResults(String)
ToString()

Returns a string representation of the value of the current instance.

(Inherited from NSObject)
TypeConformsTo(String, String)
TypeOfFile(String, NSError)
Unbind(NSString) (Inherited from NSObject)
UnmountAndEjectDevice(NSUrl, NSError)
UnmountAndEjectDevice(String)
UrlForApplication(NSUrl)
UrlForApplication(String)
ValueForKey(NSString) (Inherited from NSObject)
ValueForKeyPath(NSString) (Inherited from NSObject)
ValueForUndefinedKey(NSString) (Inherited from NSObject)
WillChange(NSKeyValueChange, NSIndexSet, NSString) (Inherited from NSObject)
WillChange(NSString, NSKeyValueSetMutationKind, NSSet) (Inherited from NSObject)
WillChangeValue(String) (Inherited from NSObject)

Extension Methods

Name Description
ObjectDidBeginEditing(NSObject, INSEditor)
ObjectDidEndEditing(NSObject, INSEditor)
GetValidModes(NSObject, NSFontPanel)
ValidateToolbarItem(NSObject, NSToolbarItem)
BrowserAccessibilityDeleteTextAtCursor(NSObject, IntPtr)
BrowserAccessibilityInsertTextAtCursor(NSObject, String)
GetAccessibilityLineEndPositionFromCurrentSelection(NSObject)
GetAccessibilityLineRangeForPosition(NSObject, IntPtr)
GetAccessibilityLineStartPositionFromCurrentSelection(NSObject)
GetBrowserAccessibilityAttributedValue(NSObject, NSRange)
GetBrowserAccessibilityContainerType(NSObject)
GetBrowserAccessibilityCurrentStatus(NSObject)
GetBrowserAccessibilityHasDomFocus(NSObject)
GetBrowserAccessibilityIsRequired(NSObject)
GetBrowserAccessibilityPressedState(NSObject)
GetBrowserAccessibilityRoleDescription(NSObject)
GetBrowserAccessibilitySelectedTextRange(NSObject)
GetBrowserAccessibilitySortDirection(NSObject)
GetBrowserAccessibilityValue(NSObject, NSRange)
SetBrowserAccessibilityContainerType(NSObject, BEAccessibilityContainerType)
SetBrowserAccessibilityCurrentStatus(NSObject, String)
SetBrowserAccessibilityHasDomFocus(NSObject, Boolean)
SetBrowserAccessibilityIsRequired(NSObject, Boolean)
SetBrowserAccessibilityPressedState(NSObject, BEAccessibilityPressedState)
SetBrowserAccessibilityRoleDescription(NSObject, String)
SetBrowserAccessibilitySelectedTextRange(NSObject, NSRange)
SetBrowserAccessibilitySortDirection(NSObject, String)
ProvideImageData(NSObject, IntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
ProvideImageToMTLTexture(NSObject, IMTLTexture, IMTLCommandBuffer, UIntPtr, UIntPtr, UIntPtr, UIntPtr, NSObject)
SetSharedObservers(NSObject, NSKeyValueSharedObserversSnapshot)
GetDebugDescription(INSObjectProtocol)
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
AcceptsPreviewPanelControl(NSObject, QLPreviewPanel)
BeginPreviewPanelControl(NSObject, QLPreviewPanel)
EndPreviewPanelControl(NSObject, QLPreviewPanel)

Applies to