Platforms to show: All Mac Windows Linux Cross-Platform

NetFSMountMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Files MBS MacOSX Plugin 18.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Our class for NetFS mounting.

Based on NetFS framework in MacOS 10.8 or later.

  • event MountURLAsyncCompleted(status as Integer, URL as String, mountpoints() as String)
  • 2 properties
  • 3 methods
    • method Cancel
    • method MountURLAsync(URL as String, MountPath as String = "", User as String = "", Password as String = "", OpenOptions as Dictionary = nil, MountOptions as Dictionary = nil) as Integer
    • method MountURLSync(URL as String, MountPath as String = "", User as String = "", Password as String = "", OpenOptions as Dictionary = nil, MountOptions as Dictionary = nil, byref MountPoints() as String) as Integer
  • 3 shared methods
  • 24 constants

Constants

Constant Value Description
kNAUIOptionKey "UIOption" One of the keys for open options dictionary. Suppress authentication dialog UI.
kNetFSAllowLoopbackKey "AllowLoopback" One of the keys for open options dictionary. Allow a loopback mount.
kNetFSAllowSubMountsKey "AllowSubMounts" One of the keys for mount options dictionary. Allow a mount from a dir beneath the share point.
Pass boolean value.
kNetFSMountAtMountDirKey "MountAtMountDir" One of the keys for mount options dictionary. Mount on the specified mountpath instead of below it.
Note that if kNetFSSoftMountKey isn't set, then it's set to true.
kNetFSMountFlagsKey "MountFlags" One of the keys for mount options dictionary. Mount flags.
e.g. integer with value 1 for read only.
kNetFSSoftMountKey "SoftMount" One of the keys for mount options dictionary. Mount with "soft" failure semantics.
Pass boolean with true.
kNetFSUseGuestKey "Guest" One of the keys for open options dictionary. Login as a guest user.
The value is a string with login name.

Error Codes

Constant Value Description
kErrorAccountRestricted -5999 Account is restricted.
kErrorMissingMountpoint 2 The mount point is missing.
kErrorNoAuthMethodSupported -5997 No supported auth method found.
kErrorNoProtocolVersionSupported -5996 No Protocol Version Supported.
kErrorNoSharesAvailable -5998 No shares available.
kErrorPasswordNeedsChange -5045 The password needs change.
kErrorPasswordPolicy -5046 Error with Password policy.
kErrorUserCanceled -128 User cancelled.
kNetAuthErrorAlreadyClosed -6005 Already closed.
kNetAuthErrorGuestNotSupported -6004 Guest login not supported.
kNetAuthErrorInternal -6600 Internal error.
kNetAuthErrorMountFailed -6602 Mount failed.
kNetAuthErrorNoSharesAvailable -6003 No shared available.

Mount Flags

Constant Value Description
kMountFlagsReadOnly 1 Mount read only.

UIOption

Constant Value Description
kNAUIOptionAllowUI "AllowUI" Allow user interface.
kNAUIOptionForceUI "ForceUI" Force user interface.
kNAUIOptionNoUI "NoUI" No user interface.

This class has no sub classes.

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Videos

Release notes


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


NamedMutexMBS   -   NetSNMPMBS


The biggest plugin in space...