Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

CFDictionaryMBS.dictionaryWithContentsOfFile(file as folderitem) as CFDictionaryMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreFoundation MBS MacCF Plugin 10.1 Yes No No Yes, macOS only No
Function: Creates and returns a dictionary using the keys and values found in a file specified by a given path.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.plist")
dim d as CFDictionaryMBS = CFDictionaryMBS.dictionaryWithContentsOfFile(f)

MsgBox d.XML.Str
Notes:
path: A full or relative pathname. The file identified by path must contain a string representation of a property list whose root object is a dictionary. The dictionary must contain only property list objects (instances of NSData, NSDate, NSNumber, NSString, NSArray, or NSDictionary).

Returns a new dictionary that contains the dictionary at path, or nil if there is a file error or if the contents of the file are an invalid representation of a dictionary.

Feedback, Comments & Corrections

CFDictionaryMBS.dictionaryWithContentsOfURL(URL as string) as CFDictionaryMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreFoundation MBS MacCF Plugin 10.1 Yes No No Yes, macOS only No
Function: Creates and returns a dictionary using the keys and values found in a resource specified by a given URL.
Example:
dim f as FolderItem = SpecialFolder.Desktop.Child("test.plist")
dim d as CFDictionaryMBS = CFDictionaryMBS.dictionaryWithContentsOfURL(f.URLPath)

MsgBox d.XML.Str
Notes:
URL: An URL that identifies a resource containing a string representation of a property list whose root object is a dictionary. The dictionary must contain only property list objects (instances of NSData, NSDate, NSNumber, NSString, NSArray, or NSDictionary).

Returns a new dictionary that contains the dictionary at aURL, or nil if there is an error or if the contents of the resource are an invalid representation of a dictionary.

Feedback, Comments & Corrections

CFDictionaryMBS.dictionaryWithHandle(Handle as Integer) as CFDictionaryMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreFoundation MBS MacCF Plugin 16.4 Yes No No Yes, macOS only No
Function: Creates a new dictionary object based on a handle value.
Notes: Will retain the reference.

Feedback, Comments & Corrections

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




Links
MBS FileMaker blog