Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

NSWorkspaceAuthorizationMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Cocoa MBS MacCocoa Plugin 19.3 Yes Yes Yes Yes No
Function: The authorization granted to the app by the user.
Notes:
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.

Feedback, Comments & Corrections

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 for this class:

Some examples which use this class:

Blog Entries


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


NSWindowRestoreHandlerMBS   -   NSWorkspaceMBS

The biggest plugin in space...




Links
MBS Xojo Chart Plugins