Platforms to show: All Mac Windows Linux Cross-Platform

NSWorkspaceMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa MBS MacCocoa Plugin 8.1 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Function: An NSWorkspace object responds to application requests to perform a variety of services.
// get icon image
dim n as NSImageMBS = NSWorkspaceMBS.iconForFile(SpecialFolder.desktop)
// set the size we want
n.setSize 512,512
// make a copy as picture
Backdrop = n.CopyPictureWithMask
  • Opening, manipulating, and obtaining information about files and devices
  • Tracking changes to the file system, devices, and the user database
  • Launching applications


Constant Value Description
NSBundleExecutableArchitectureARM64 &h0100000c Specifies the 64-bit ARM architecture.
NSBundleExecutableArchitectureI386 &h00000007 Intel 32 bit.
NSBundleExecutableArchitecturePPC &h00000012 PPC 32 bit.
NSBundleExecutableArchitecturePPC64 &h01000012 PPC 64 bit.
NSBundleExecutableArchitectureX86_64 &h01000007 Intel 64 bit.

Authorization Types

Constant Value Description
NSWorkspaceAuthorizationTypeCreateSymbolicLink 0 Authorization for the app to create a symoblic link.
NSWorkspaceAuthorizationTypeReplaceFile 2 Authorization for the app to perform an atomic file write without changing the target file's permissions.
NSWorkspaceAuthorizationTypeSetAttributes 1 Authorization for the app to change specific file attributes.

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine

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

NSWorkspaceAuthorizationMBS   -   NSXPCConnectionMBS

💬 Ask a question or report a problem
The biggest plugin in space...

Start Chat