MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

Next items

CFShowCFStringMBS(cfstring as CFStringMBS)
global method, CoreFoundation, MBS MacOSXCF Plugin (CF),
Plugin version: 3.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Prints the content of the given CFString to the console.
CFShowMBS(cfobject as CFObjectMBS)
global method, CoreFoundation, MBS MacOSXCF Plugin (CF),
Plugin version: 3.3, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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:

CreateBundleMBS(file as folderitem) as CFBundleMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CFBundle),
Plugin version: 10.1, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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:

CreateBundleMBS(url as CFURLMBS) as CFBundleMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CFBundle),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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:

CreateBundlesFromDirectoryMBS(url as CFURLMBS, type as CFStringMBS) as CFArrayMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CFBundle),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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:

CreateCFTimeZoneMBS(name as CFStringMBS, data as CFBinaryDataMBS) as CFTimeZoneMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CFDate),
Plugin version: 3.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Creates a new timezone object with the given name and data.
Notes: Returns nil on any error.
CreateCFTimeZoneMBSwithName(name as CFStringMBS, TryAbbrev as boolean) as CFTimeZoneMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CFDate),
Plugin version: 3.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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.
CreateCFTimeZoneMBSwithTimeIntervalFromGMT(time as CFTimeIntervalMBS) as CFTimeZoneMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CFDate),
Plugin version: 3.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Creates a new timezone object with the given time interval.
Notes: Returns nil on any error.
CreateStringByAddingPercentEscapesMBS(original as CFStringMBS,charactersToLeaveEscaped as CFStringMBS,legalURLCharactersToBeEscaped as CFStringMBS,encoding as Integer) as CFStringMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CFURL),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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.
CreateStringByReplacingPercentEscapesMBS(original as CFStringMBS,charactersToLeaveEscaped as CFStringMBS) as CFStringMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CFURL),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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.
CurrentCFAbsoluteTimeMBS as CFAbsoluteTimeMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CFDate),
Plugin version: 3.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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.
GetAllBundlesMBS as CFArrayMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CFBundle),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns a list of all known bundles on the system.
Notes: Returns nil on any error.
GetBundleWithIdentifierMBS(id as CFStringMBS) as CFBundleMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CFBundle),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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.
GetDefaultCFTimeZoneMBS as CFTimeZoneMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CFDate),
Plugin version: 3.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: The default time zone.
Example:
msgBox str(GetDefaultCFTimeZoneMBS.SecondsFromGMT(nil).Value)
Notes: Returns nil on any error.
kCFArrayMBSTypeID as Integer
global method, CoreFoundation, MBS MacOSXCF Plugin (CFDictionaryArray),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the Type ID of a CFArrayMBS object.
kCFBagMBSTypeID as Integer
global method, CoreFoundation, MBS MacOSXCF Plugin (CFSetBag),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the Type ID of a CFBagMBS object.
kCFBinaryDataMBSTypeID as Integer
global method, CoreFoundation, MBS MacOSXCF Plugin (CF),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the Type ID of a CFBinary object.
kCFBooleanMBSTypeID as Integer
global method, CoreFoundation, MBS MacOSXCF Plugin (CF),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the Type ID of a CFBooleanMBS object.
kCFBundleMBSTypeID as Integer
global method, CoreFoundation, MBS MacOSXCF Plugin (CFBundle),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

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.
kCFDateMBSTypeID as Integer
global method, CoreFoundation, MBS MacOSXCF Plugin (CFDate),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the Type ID of a CFDateMBS object.
kCFDictionaryMBSTypeID as Integer
global method, CoreFoundation, MBS MacOSXCF Plugin (CFDictionaryArray),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the Type ID of a CFDictionaryMBS object.
kCFNumberMBSNaN as CFNumberMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CF),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns a CFNumberMBS object for NaN (not a number).
kCFNumberMBSNegativeInfinity as CFNumberMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CF),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns a CFNumberMBS object for negative infinity.
kCFNumberMBSPositiveInfinity as CFNumberMBS
global method, CoreFoundation, MBS MacOSXCF Plugin (CF),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns a CFNumberMBS object for positive infinity.
kCFNumberMBSTypeID as Integer
global method, CoreFoundation, MBS MacOSXCF Plugin (CF),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the Type ID of a CFNumberMBS object.
kCFSetMBSTypeID as Integer
global method, CoreFoundation, MBS MacOSXCF Plugin (CFSetBag),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the Type ID of a CFSetMBS object.
kCFStringMBSTypeID as Integer
global method, CoreFoundation, MBS MacOSXCF Plugin (CF),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the Type ID of a CFStringMBS object.
kCFTimeZoneMBSTypeID as Integer
global method, CoreFoundation, MBS MacOSXCF Plugin (CFDate),
Plugin version: 3.2, Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the Type ID of a CFTimeZone object.
kCFURLMBSTypeID as Integer
global method, CoreFoundation, MBS MacOSXCF Plugin (CFURL),
Mac: Yes, Win: No, Linux: No, Console & Web: Yes, Feedback.

Function: Returns the Type ID of a CFURLMBS object.

Next items

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




Links
MBS Real Studio PDF Plugins