Platforms to show: All Mac Windows Linux Cross-Platform

Back to AuthorizationMBS class.

AuthorizationMBS.Authorized as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Authorization MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Set to true if the last call to Authorizate was successfull.

(Read and Write property)

AuthorizationMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Authorization MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The handle to the Mac OS authorization object.

The C type is AuthorizationRef.
(Read and Write property)

AuthorizationMBS.KeepRights as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Authorization MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
whether the destructor will keep the rights allive for the next use.

Normally the rights will be destroyed in the destructor so on the next use of the class the user has to reenter the password. If KeepRights=true the rights will not be destroyed.
(Read and Write property)

AuthorizationMBS.LastError as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Authorization MBS MacCF Plugin 2.8 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The last error code reported.

Lasterror is -1 if the function is not supported (e.g. on Windows).

Authorization error codes:
errAuthorizationSuccess0,The operation completed successfully.
errAuthorizationInvalidSet-60001,The set parameter is invalid.
errAuthorizationInvalidRef-60002,The authorization parameter is invalid.
errAuthorizationInvalidTag-60003,The tag parameter is invalid.
errAuthorizationInvalidPointer-60004,The authorizedRights parameter is invalid.
errAuthorizationDenied-60005,The authorization was denied.
errAuthorizationCanceled-60006,The authorization was cancled by the user.
errAuthorizationInteractionNotAllowed-60007,The authorization was denied since no user interaction was possible.
errAuthorizationInternal-60008,something else went wrong
errAuthorizationExternalizeNotAllowed-60009,authorization externalization denied
errAuthorizationInternalizeNotAllowed-60010,authorization internalization denied
errAuthorizationInvalidFlags-60011,invalid option flag(s)
errAuthorizationToolExecuteFailure-60031,cannot execute privileged tool
errAuthorizationToolEnvironmentError-60032 privileged tool environment error

Other Mac OS error codes like -50 for wrong parameters are also possible.
(Read and Write property)

AuthorizationMBS.StreamHandle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Authorization MBS MacCF Plugin 3.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The handle to the stream for the terminal running in the background with your command line application.

(Read and Write property)

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


The biggest plugin in space...