Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

CFPreferencesMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class CoreFoundation MBS MacCF Plugin Yes No No Yes, macOS only No
Function: A class for the core foundation preferences services.
Sub Open()
// in a listbox on a window, list all preferences applications for the current user
dim c as CFArrayMBS
dim p as CFPreferencesMBS
dim i as Integer
dim count as Integer
dim o as CFObjectMBS
dim s as CFStringMBS

p=new CFPreferencesMBS
c=p.CopyApplicationList(p.kCFPreferencesCurrentUser, p.kCFPreferencesAnyHost)

for i=0 to count
if o isa CFStringMBS then
window1.listbox1.AddRow s.str
end if

Title=str(ListBox1.ListCount)+" "+Title
End Sub
Notes: Search for Apple Developer documentation on CFPreferences for details on functionality these plugin functions provide.

Feedback, Comments & Corrections

This class has no sub classes.

Some examples which use this class:

Blog Entries

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

CFObjectMBS   -   CFProxyMBS

The biggest plugin in space...

MBS FileMaker blog