Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

CFShowCFStringMBS(cfstring as CFStringMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin 3.3 Yes No No Yes, macOS only No
Function: Prints the content of the given CFString to the console.

Feedback, Comments & Corrections

CFShowMBS(cfobject as CFObjectMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin 3.3 Yes No No Yes, macOS only No
Function: Prints the content of the given CFObject to the console.
Notes: Very useful for e.g. CFDictionarys.

Some examples using this method:

Some FAQ entries about this method:

Feedback, Comments & Corrections

CreateBundleMBS(file as folderitem) as CFBundleMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin 10.1 Yes No No Yes, macOS only No
Function: Creates a CFBundle object for the bundle folder on the given position.
Example:
// Find and show the main executable file of a bundled application

dim f as FolderItem

f=SpecialFolder.Applications.Child("Mail.app")
MsgBox f.AbsolutePath // shows app bundle path

dim b as CFBundleMBS
dim u as CFURLMBS

b=CreateBundleMBS(f)
if b<>nil then
u=b.ExecutableFile
if u<>nil then
MsgBox f.AbsolutePath // shows app executable path
end if
end if
Notes: Returns nil on any error.

See also:

Some examples using this method:

Feedback, Comments & Corrections

CreateBundleMBS(url as CFURLMBS) as CFBundleMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Creates a CFBundle object for the bundle folder on the given position.
Example:
// Find and show the main executable file of a bundled application

dim f as FolderItem

f=SpecialFolder.Applications.Child("Mail.app")
MsgBox f.AbsolutePath // shows app bundle path

dim b as CFBundleMBS
dim u as CFURLMBS

u=NewCFURLMBSFile(f)
if u<>Nil then
b=CreateBundleMBS(u)
if b<>nil then
u=b.ExecutableFile
if u<>nil then
MsgBox f.AbsolutePath // shows app executable path
end if
end if
end if
Notes: Returns nil on any error.

See also:

Some examples using this method:

Feedback, Comments & Corrections

CreateBundlesFromDirectoryMBS(url as CFURLMBS, type as CFStringMBS) as CFArrayMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns a list of all bundles in a folder.
Notes:
Returns nil on any error.

With the Type parameter you can limit the bundles to a certain type.
The abstract type of the bundles you wish to locate and create. The type is expressed as a filename extension, such as bundle. Pass NULL to create CFBundle objects for bundles of any type.

Some examples using this method:

Feedback, Comments & Corrections

CreateCFTimeZoneMBS(name as CFStringMBS, data as CFBinaryDataMBS) as CFTimeZoneMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin 3.2 Yes No No Yes, macOS only No
Function: Creates a new timezone object with the given name and data.
Notes: Returns nil on any error.

Feedback, Comments & Corrections

CreateCFTimeZoneMBSwithName(name as CFStringMBS, TryAbbrev as boolean) as CFTimeZoneMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin 3.2 Yes No No Yes, macOS only No
Function: Creates a new timezone object with the object from the system which matches the given name.
Notes:
If TryAbbrev is true the system also checks if the name matches the abbreviated name of the timezone object.
Returns nil on any error.

Feedback, Comments & Corrections

CreateCFTimeZoneMBSwithTimeIntervalFromGMT(time as CFTimeIntervalMBS) as CFTimeZoneMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin 3.2 Yes No No Yes, macOS only No
Function: Creates a new timezone object with the given time interval.
Notes: Returns nil on any error.

Feedback, Comments & Corrections

CreateStringByAddingPercentEscapesMBS(original as CFStringMBS,charactersToLeaveEscaped as CFStringMBS,legalURLCharactersToBeEscaped as CFStringMBS,encoding as Integer) as CFStringMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Addes percent escapes inside a string.
Notes: If charactersToLeaveEscaped=nil then no string is changed. If charactersToLeaveEscaped contains an emptry string ("") all escapes are changed and if charactersToLeaveEscaped contains a string<>"" then this characters are not escaped.

Feedback, Comments & Corrections

CreateStringByReplacingPercentEscapesMBS(original as CFStringMBS,charactersToLeaveEscaped as CFStringMBS) as CFStringMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Replaces percent escapes inside a string.
Notes: If charactersToLeaveEscaped=nil then no string is changed. If charactersToLeaveEscaped contains an emptry string ("") all escapes are changed and if charactersToLeaveEscaped contains a string<>"" then this characters are not escaped.

Feedback, Comments & Corrections

CurrentCFAbsoluteTimeMBS as CFAbsoluteTimeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin 3.2 Yes No No Yes, macOS only No
Function: The current time as an absolute time object.
Example:
// get current timezone
dim c as CFTimeZoneMBS = SystemCFTimeZoneMBS

// and current time
dim time as CFAbsoluteTimeMBS = CurrentCFAbsoluteTimeMBS

// Do we have daylight saving time?
MsgBox str(c.IsDaylightSavingTime(time))
Notes: Returns nil on any error.

Feedback, Comments & Corrections

GetAllBundlesMBS as CFArrayMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns a list of all known bundles on the system.
Notes: Returns nil on any error.

Feedback, Comments & Corrections

GetBundleWithIdentifierMBS(id as CFStringMBS) as CFBundleMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Creates a CFBundle object for the bundle with the given ID.
Notes:
Returns nil on any error.

Returns only a bundle if that bundle has been loaded before.

For a bundle to be located using its identifier, the bundle object must have already been created. The principal intended purpose for locating bundles by identifier is so that code (in frameworks, plugins, etc.) can find its own bundle. If a bundle is created, then the bundle deleted from the filesystem and this function invoked afterwards, it will still return the original bundle.

Feedback, Comments & Corrections

GetDefaultCFTimeZoneMBS as CFTimeZoneMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin 3.2 Yes No No Yes, macOS only No
Function: The default time zone.
Example:
msgBox str(GetDefaultCFTimeZoneMBS.SecondsFromGMT(nil).Value)
Notes: Returns nil on any error.

Feedback, Comments & Corrections

kCFArrayMBSTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFArrayMBS object.

Feedback, Comments & Corrections

kCFBagMBSTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFBagMBS object.

Feedback, Comments & Corrections

kCFBinaryDataMBSTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFBinary object.

Feedback, Comments & Corrections

kCFBooleanMBSTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFBooleanMBS object.

Feedback, Comments & Corrections

kCFBundleMBSTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFBundle object.
Notes:
CFBundle objects may be supported in a future version of this plugin.
Request if you need more than the app.bundle functions offer you.

Feedback, Comments & Corrections

kCFDateMBSTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFDateMBS object.

Feedback, Comments & Corrections

kCFDictionaryMBSTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFDictionaryMBS object.

Feedback, Comments & Corrections

kCFNumberMBSNaN as CFNumberMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns a CFNumberMBS object for NaN (not a number).

Feedback, Comments & Corrections

kCFNumberMBSNegativeInfinity as CFNumberMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns a CFNumberMBS object for negative infinity.

Feedback, Comments & Corrections

kCFNumberMBSPositiveInfinity as CFNumberMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns a CFNumberMBS object for positive infinity.

Feedback, Comments & Corrections

kCFNumberMBSTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFNumberMBS object.

Feedback, Comments & Corrections

kCFSetMBSTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFSetMBS object.

Feedback, Comments & Corrections

kCFStringMBSTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFStringMBS object.

Feedback, Comments & Corrections

kCFTimeZoneMBSTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin 3.2 Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFTimeZone object.

Feedback, Comments & Corrections

kCFURLMBSTypeID as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method CoreFoundation MBS MacOSXCF Plugin Yes No No Yes, macOS only No
Function: Returns the Type ID of a CFURLMBS object.

Feedback, Comments & Corrections

Next items

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




Links
MBS FileMaker tutorial videos