Platforms to show: All Mac Windows Linux Cross-Platform

CFPreferencesMBS class

Type Topic Plugin macOS Windows Linux iOS Targets
class CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
A class for the core foundation preferences services.
Example
// This example needs a window with ListBox1.
Sub Open()
// in a listbox on a window, list all preferences applications for the current user
Var c as CFArrayMBS
Var p as CFPreferencesMBS
Var i as Integer
Var count as Integer
Var o as CFObjectMBS
Var s as CFStringMBS

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

count=c.Count-1
for i=0 to count
o=c.Item(i)
if o isa CFStringMBS then
s=CFStringMBS(o)
Window1.ListBox1.AddRow s.str
end if
next

Title=str(ListBox1.ListCount)+" "+Title
End Sub

Search for Apple Developer documentation on CFPreferences for details on functionality these plugin functions provide.

This class has no subclasses.

Blog Entries

Some examples using this class:

Some related classes:


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


CFObjectMBS   -   CFProxyMBS


The biggest plugin in space...