Platforms to show: All Mac Windows Linux Cross-Platform

NSWorkspaceAuthorizationMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa MBS MacCocoa Plugin 19.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The authorization granted to the app by the user.

To enable your app to prompt the user for these file permissions, you must have a Privileged File Operation entitlement. If you have an app on the Mac App Store or plan to submit your app for review, you can request this entitlement (see https://developer.apple.com/go/?id=workspace-authorization).

see also
https://developer.apple.com/documentation/appkit/nsworkspaceauthorization
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Authorization types

Constant Value Description
NSWorkspaceAuthorizationTypeCreateSymbolicLink 0 Authorization for the app to create a symbolic 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 methods using this class:

Some events using this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes


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


NSWindowRestoreHandlerMBS   -   NSWorkspaceMBS


The biggest plugin in space...