Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items Next items

NSWorkspaceMBS.NSWorkspaceActiveSpaceDidChangeNotification as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the notification names.
Notes:
Posted when a Spaces change has occurred.
The notification object is the shared NSWorkspace instance. The notification does not contain a userInfo dictionary.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceApplicationKey as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: This constant is supplied in the userInfo dictionary of various notifications.
Notes:
The value corresponding to this key is an instance of NSRunningApplication that reflects the affected application.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceCompressOperation as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the file operation modes.
Notes: Compress file. This operation always returns an error.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceCopyOperation as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the file operation modes.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test")
dim tag as Integer
dim files(-1) as string
dim b as Boolean
dim source,dest as FolderItem

// copies a file from one folder to another folder

source=f.Parent
files.Append f.name
dest=SpecialFolder.Pictures

b=NSWorkspaceMBS.performFileOperation(NSWorkspaceMBS.NSWorkspaceCopyOperation, source, dest, files, tag)

if b then
MsgBox "OK"
else
MsgBox "Failed"
end if
Notes: Copy file to destination.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDecompressOperation as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the file operation modes.
Notes: Decompress file. This operation always returns an error.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDecryptOperation as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the file operation modes.
Notes: Decrypt file. This operation always returns an error.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDesktopImageAllowClippingKey as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the keys for the options dictionary used with SetDesktopImageURL.
Notes:
The value is a boolean, which affects the interpretation of Proportional scaling types. A false value will make the image fully visible, but there may be empty space on the sides or top and bottom. A true value will cause the image to fill the entire screen, but the image may be clipped. If this is not specified, false is assumed. Non-proportional scaling types ignore this value.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDesktopImageFillColorKey as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the keys for the options dictionary used with SetDesktopImageURL.
Notes:
The value is an NSColor, which is used to fill any empty space around the image. If not specified, a default value is used. Currently, only colors that use or can be converted to use NSCalibratedRGBColorSpace are supported, and any alpha value is ignored.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDesktopImageScalingKey as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the keys for the options dictionary used with SetDesktopImageURL.
Notes:
The value is an Number containing an NSImageScaling constant as declared in NSCell. If this is not specified, NSImageScaleProportionallyUpOrDown=3 is used. NSImageScaleProportionallyDown=0 is not currently supported.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDestroyOperation as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the file operation modes.
Notes: Destroy file.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDidActivateApplicationNotification as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the notification names.
Notes:
Posted when the Finder is about to activate an application.
The notification object is the shared NSWorkspace instance. In Mac OS X v10.6 and later the userInfo dictionary contains the NSWorkspaceApplicationKey key with a corresponding instance of NSRunningApplication that represents the affected application.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDidChangeFileLabelsNotification as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the notification names.
Notes:
Posted when the Finder file labels or colors change.
The notification object is the shared NSWorkspace instance. The notification does not contain a userInfo dictionary.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDidDeactivateApplicationNotification as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the notification names.
Notes:
Posted when the Finder deactivated an application.
The notification object is the shared NSWorkspace instance. In Mac OS X v10.6 and later the userInfo dictionary contains the NSWorkspaceApplicationKey key with a corresponding instance of NSRunningApplication that represents the affected application.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDidHideApplicationNotification as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the notification names.
Notes:
Posted when the Finder hid an application.
The notification object is the shared NSWorkspace instance. In Mac OS X v10.6 and later the userInfo dictionary contains the NSWorkspaceApplicationKey key with a corresponding instance of NSRunningApplication that represents the affected application.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDidLaunchApplicationNotification as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the notification names.
Notes:
Posted when a new application has started up.
The notification object is the shared NSWorkspace instance. In Mac OS X v10.6 and later the userInfo dictionary contains the NSWorkspaceApplicationKey key with a corresponding instance of NSRunningApplication that represents the affected application.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDidMountNotification as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the notification names.
Notes:
Posted when a new device has been mounted.
The notification object is the shared NSWorkspace instance.

In Mac OS X v10.5 and earlier the userInfo dictionary contains a key @"NSDevicePath" that returns the path where the device was mounted, as a string.
Available in Mac OS X v10.0 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDidPerformFileOperationNotification as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the notification names.
Notes:
Posted when a file operation has been performed in the receiving application.
The notification object is the shared NSWorkspace instance. The userInfo dictionary contains a key "NSOperationNumber" with a number containing an integer indicating the type of file operation
Available in Mac OS X v10.0 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDidRenameVolumeNotification as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the notification names.
Notes:
Posted when a volume changes its name and/or mount path. These typically change simultaneously, in which case only one notification is posted.
The notification object is the shared NSWorkspace instance.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDidTerminateApplicationNotification as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the notification names.
Notes:
Posted when an application finishes executing.
The notification object is the shared NSWorkspace instance. In Mac OS X v10.6 and later the userInfo dictionary contains the NSWorkspaceApplicationKey key with a corresponding instance of NSRunningApplication that represents the affected application.

Available in Mac OS X v10.0 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDidUnhideApplicationNotification as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the notification names.
Notes:
Posted when the Finder unhid an application.
The notification object is the shared NSWorkspace instance. In Mac OS X v10.6 and later the userInfo dictionary contains the NSWorkspaceApplicationKey key with a corresponding instance of NSRunningApplication that represents the affected application.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDidUnmountNotification as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the notification names.
Notes:
Posted when the Finder did unmount a device.
This notification is delivered even if a volume was forcibly and immediately made unavailable, such as when a drive is simply unplugged.

The notification object is the shared NSWorkspace instance. The userInfo dictionary contains a key "NSDevicePath" that returns the path where the device was mounted, as a string.
Available in Mac OS X v10.0 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDidWakeNotification as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the notification names.
Notes:
Posted when the machine wakes from sleep.
The notification object is the shared NSWorkspace instance. The notification does not contain a userInfo dictionary.
Available in Mac OS X v10.3 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceDuplicateOperation as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the file operation modes.
Notes: Duplicate file in source directory.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceEncryptOperation as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the file operation modes.
Notes: Encrypt file. This operation always returns an error.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceLaunchConfigurationAppleEvent as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the keys for the configuration dictionary for launchApplication* methods.
Notes:
The value is the first NSAppleEventDescriptor to send to the new application. If an instance of the application is already running, this is sent to that application.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceLaunchConfigurationArchitecture as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the keys for the configuration dictionary for launchApplication* methods.
Notes:
The value is a number containing an Mach-O Architecture constant. Ignored if a new instance of the application is not launched.
Available in Mac OS X v10.6 and later.
See NSBundleExecutableArchitecture* constants.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceLaunchConfigurationArguments as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the keys for the configuration dictionary for launchApplication* methods.
Notes:
The value is an NSArray of NSStrings, passed to the new application in the argv parameter. Ignored if a new instance of the application is not launched.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceLaunchConfigurationEnvironment as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the keys for the configuration dictionary for launchApplication* methods.
Notes:
The value is an dictionary, mapping Strings to Strings, containing environment variables to set for the new app. Ignored if a new instance of the application is not launched.
Available in Mac OS X v10.6 and later.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceLinkOperation as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the file operation modes.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test")
dim tag as Integer
dim files(-1) as string
dim b as Boolean
dim source,dest as FolderItem

// creates a hard link to a file in a folder

source=f.Parent
files.Append f.name
dest=SpecialFolder.Pictures

b=NSWorkspaceMBS.performFileOperation(NSWorkspaceMBS.NSWorkspaceLinkOperation, source, dest, files, tag)

if b then
MsgBox "OK"
else
MsgBox "Failed"
end if
Notes: Create hard link to file in destination.

Feedback, Comments & Corrections

NSWorkspaceMBS.NSWorkspaceMoveOperation as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Cocoa MBS MacCocoa Plugin 11.3 Yes No No Yes, macOS only No
Function: One of the file operation modes.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test")
dim tag as Integer
dim files(-1) as string
dim b as Boolean
dim source,dest as FolderItem

// moves a file from one folder to another folder

source=f.Parent
files.Append f.name
dest=SpecialFolder.Pictures

b=NSWorkspaceMBS.performFileOperation(NSWorkspaceMBS.NSWorkspaceMoveOperation, source, dest, files, tag)

if b then
MsgBox "OK"
else
MsgBox "Failed"
end if
Notes: Move file to destination.

Feedback, Comments & Corrections

Previous items Next items

The items on this page are in the following plugins: MBS MacCocoa Plugin.




Links
MBS FileMaker Plugins