Xojo Conferences
XDCMay2019MiamiUSA
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

CFDictionaryMBS.CGPointFromDictionary(dic as CFDictionaryMBS) as variant
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreFoundation MBS MacCF Plugin 19.1 Yes No No Yes, macOS only No
Function: Creates CGPointMBS object from dictionary.
Notes: 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.

Feedback, Comments & Corrections

CFDictionaryMBS.CGRectFromDictionary(dic as CFDictionaryMBS) as variant
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreFoundation MBS MacCF Plugin 19.1 Yes No No Yes, macOS only No
Function: Creates CGRectMBS object from dictionary.
Notes: 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.

Feedback, Comments & Corrections

CFDictionaryMBS.CGSizeFromDictionary(dic as CFDictionaryMBS) as variant
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreFoundation MBS MacCF Plugin 19.1 Yes No No Yes, macOS only No
Function: Creates CGSizeMBS object from dictionary.
Notes: 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.

Feedback, Comments & Corrections

CFDictionaryMBS.dictionaryWithCGPoint(point as variant) as CFDictionaryMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreFoundation MBS MacCF Plugin 19.1 Yes No No Yes, macOS only No
Function: Return a dictionary representation of point.
Notes:
Rect must be a CGPointMBS object or nil.
Returns dictionary or nil.

Feedback, Comments & Corrections

CFDictionaryMBS.dictionaryWithCGRect(rect as variant) as CFDictionaryMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreFoundation MBS MacCF Plugin 19.1 Yes No No Yes, macOS only No
Function: Return a dictionary representation of rect.
Notes:
Rect must be a CGRectMBS object or nil.
Returns dictionary or nil.

Feedback, Comments & Corrections

CFDictionaryMBS.dictionaryWithCGSize(size as variant) as CFDictionaryMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreFoundation MBS MacCF Plugin 19.1 Yes No No Yes, macOS only No
Function: Return a dictionary representation of size.
Notes:
Rect must be a CGSizeMBS object or nil.
Returns dictionary or nil.

Feedback, Comments & Corrections

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 Xojo PDF Plugins