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 |
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.
- property Handle as Integer
- method Constructor Private
- 3 constants
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:
- NSFileManagerMBS.fileManagerWithAuthorization(authorization as NSWorkspaceAuthorizationMBS) as NSFileManagerMBS
Some events using this class:
- NSWorkspaceMBS.requestAuthorizationCompleted(type as Integer, authorization as NSWorkspaceAuthorizationMBS, error as NSErrorMBS, tag as variant)
Some examples using this class:
Blog Entries
- MonkeyBread Software Releases the MBS Xojo Plugins in version 19.3
- MBS Xojo Plugins, version 19.3pr3
Xojo Developer Magazine
Release notes
- Version 19.3
- Added NSWorkspaceAuthorizationMBS class.
The items on this page are in the following plugins: MBS MacCocoa Plugin.
NSWindowRestoreHandlerMBS - NSWorkspaceMBS