Platforms to show: All Mac Windows Linux Cross-Platform
Back to CFURLMBS class.
CFURLMBS.AbsoluteURL as CFURLMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A URL contains normally a base and a relative part. This function creates one absolute URL from those parts.
CFURLMBS.AppendPathComponent(pathcomponent as CFStringMBS,isDirectory as boolean) as CFURLMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.AppendPathExtension(extension as CFStringMBS) as CFURLMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
A URL contains normally a base and a relative part.
CFURLMBS.CanBeDecomposed as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.Constructor(File as FolderItem)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | 17.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Raises exception if not called on macOS or called with invalid URL.
See also:
CFURLMBS.Constructor(URL as string)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | 17.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Raises exception if not called on macOS or called with invalid URL.
See also:
CFURLMBS.Data(encoding as Integer, escapeWhitespace as boolean) as CFBinaryDataMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.DeleteLastPathComponent as CFURLMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.DeletePathExtension as CFURLMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.DisplayName as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | 2.9 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns "" on any error.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Works only on RB 4.5 or later and if the file exists.
CFURLMBS.Fragment(charactersToLeaveEscaped as CFStringMBS) as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.HasDirectoryPath as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.HFSFileSystemPath as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.HostName as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.isAbsolutePath as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | 2.9 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.LastPathComponent as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | 2.9 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns a Mac OS error string or -1 if the function is not available.
CFURLMBS.NetLocation as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.ParameterString(charactersToLeaveEscaped as CFStringMBS) as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.Password as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
CFURLMBS.Path(resolveAgainstBase as boolean) as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
CFURLMBS.PathExtension as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.PortNumber as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns -1 if no port specified and -2 on Windows and Mac OS Classic.
CFURLMBS.PosixFileSystemPath as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Some examples using this method:
CFURLMBS.QueryString(charactersToLeaveEscaped as CFStringMBS) as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.ResourcePropertyForKey(key as CFStringMBS, byref value as Variant, byref error as CFErrorMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
key: The resource key that identifies the resource property.
Value: On output when the result is true, the resource value or nil.
error: On output when the result is false, the error that occurred.
Returns true if value is successfully populated; false if an error occurs.
ResourcePropertyForKey first checks if the URL object already caches the resource value. If so, it returns the cached resource value to the caller. If not, then ResourcePropertyForKey synchronously obtains the resource value from the backing store, adds the resource value to the URL object's cache, and returns the resource value to the caller. The type of the resource value varies by resource property (see resource key definitions). If this function returns true and v alue is populated with nil, it means the resource property is not available for the specified resource and no errors occurred when determining the resource property was not available. If this function returns false, the optional error is populated. This function is currently applicable only to URLs for file system resources.
CFURLMBS.ResourceSpecifier as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.Scheme as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.SetResourcePropertyForKey(key as CFStringMBS, value as Variant, byref error as CFErrorMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
key: The resource key that identifies the resource property.
Value: The resource value.
error: On output when the result is false, the error that occurred.
Returns true if the attempt to set the resource value completed with no errors; otherwise, false.
CFURLSetResourcePropertyForKey writes the new resource value out to the backing store. Attempts to set a read-only resource property or to set a resource property not supported by the resource are ignored and are not considered errors. If this function returns false, the optional error is populated. This function is currently applicable only to URLs for file system resources.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.StrictPath as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.UserName as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFURLMBS.WindowsFileSystemPath as CFStringMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The items on this page are in the following plugins: MBS MacCF Plugin.