Xojo Conferences
XDCMay2019MiamiUSA

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.
Example:
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)

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
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:


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


CFObjectMBS   -   CFProxyMBS




Links
MBS Xojo Plugins