Platforms to show: All Mac Windows Linux Cross-Platform
Back to CFDictionaryMBS class.
CFDictionaryMBS.clone as CFDictionaryMBS
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 | 10.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
CFDictionaryMBS.Constructor(dic as dictionary)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | 10.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Be aware that the Dictionary is converted as good as possible. Unsupported datatype will be missing.
See the FAQ for the supported type translation between CoreFoundation and Xojo data types.
See also:
CFDictionaryMBS.ContainsKey(value as CFObjectMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFDictionaryMBS.ContainsValue(value as CFObjectMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFDictionaryMBS.CountKey(value as CFObjectMBS) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFDictionaryMBS.CountValue(value as CFObjectMBS) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFDictionaryMBS.Dictionary as Dictionary
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | 10.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Be aware that the CFDictionary is converted as good as possible. Unsupported datatype will be missing.
See the FAQ for the supported type translation between CoreFoundation and Xojo data types.
CFDictionaryMBS.edit as CFMutableDictionaryMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CFDictionaryMBS.list as CFDictionaryListMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This list will be invalid whenever this dictionary is destroyed.
CFDictionaryMBS.Value(key as CFObjectMBS) as CFObjectMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns nil if key is not found.
CFDictionaryMBS.writeToFile(file as folderitem, useAuxiliaryFile as boolean) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | 10.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
path: The path at which to write the file. Must be an absolute URL.
useAuxiliaryFile: A flag that specifies whether the file should be written atomically.
If flag is true, the receiver is written to an auxiliary file, and then the auxiliary file is renamed to path. If flag is false, the dictionary is written directly to path. The true option guarantees that path, if it exists at all, won't be corrupted even if the system should crash during writing.
Returns true if the file is written successfully, otherwise false.
This method recursively validates that all the contained objects are property list objects (instances of NSData, NSDate, NSNumber, NSString, NSArray, or NSDictionary) before writing out the file, and returns false if all the objects are not property list objects, since the resultant file would not be a valid property list.
If the receiver's contents are all property list objects, the file written by this method can be used to initialize a new dictionary with the class method dictionaryWithContentsOfFile or dictionaryWithContentsOfURL.
CFDictionaryMBS.writeToURL(url as string, atomically as boolean) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | CoreFoundation | MBS MacCF Plugin | 10.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
url: The URL to which to write the receiver.
atomically: A flag that specifies whether the output should be written atomically.
If flag is YtrueES, the receiver is written to an auxiliary location, and then the auxiliary location is renamed to aURL. If flag is false, the dictionary is written directly to aURL. The true option guarantees that aURL, if it exists at all, won't be corrupted even if the system should crash during writing. flag is ignored if aURL is of a type that cannot be written atomically.
Returns true if the location is written successfully, otherwise false.
This method recursively validates that all the contained objects are property list objects (instances of NSData, NSDate, NSNumber, NSString, NSArray, or NSDictionary) before writing out the file, and returns false if all the objects are not property list objects, since the resultant output would not be a valid property list.
If the receiver's contents are all property list objects, the location written by this method can be used to initialize a new dictionary with the class method dictionaryWithContentsOfURL or dictionaryWithContentsOfFile.
For more information about property lists, see Property List Programming Guide.
The items on this page are in the following plugins: MBS MacCF Plugin.