CFDictionaryMBS shared methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to CFDictionaryMBS class.

CFDictionaryMBS.CGPointFromDictionary(dic as CFDictionaryMBS) as variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates CGPointMBS object from dictionary.

Make a CGPointMBS from the contents of dict (presumably returned earlier from CFDictionaryMBS.dictionaryWithCGPoint) and returns the value in point. Returns object on success; nil otherwise.

CFDictionaryMBS.CGRectFromDictionary(dic as CFDictionaryMBS) as variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates CGRectMBS object from dictionary.

Make a CGRect from the contents of dict (presumably returned earlier from CFDictionaryMBS.dictionaryWithCGRect) and returns the value in point. Returns object on success; nil otherwise.

CFDictionaryMBS.CGSizeFromDictionary(dic as CFDictionaryMBS) as variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates CGSizeMBS object from dictionary.

Make a CGSize from the contents of dict (presumably returned earlier from CFDictionaryMBS.dictionaryWithCGSize) and returns the value in point. Returns object on success; nil otherwise.

CFDictionaryMBS.dictionaryWithCGPoint(point as variant) as CFDictionaryMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Return a dictionary representation of point.

Rect must be a CGPointMBS object or nil.
Returns dictionary or nil.

CFDictionaryMBS.dictionaryWithCGRect(rect as variant) as CFDictionaryMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Return a dictionary representation of rect.

Rect must be a CGRectMBS object or nil.
Returns dictionary or nil.

CFDictionaryMBS.dictionaryWithCGSize(size as variant) as CFDictionaryMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Return a dictionary representation of size.

Rect must be a CGSizeMBS object or nil.
Returns dictionary or nil.

CFDictionaryMBS.dictionaryWithContentsOfFile(file as folderitem) as CFDictionaryMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 10.1 ✅ Yes ❌ No ❌ No ✅ Yes All
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

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.

CFDictionaryMBS.dictionaryWithContentsOfURL(URL as string) as CFDictionaryMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 10.1 ✅ Yes ❌ No ❌ No ✅ Yes All
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

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.

CFDictionaryMBS.dictionaryWithHandle(Handle as Integer) as CFDictionaryMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new dictionary object based on a handle value.

Will retain the reference.

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


💬 Ask a question or report a problem