Platforms to show: All Mac Windows Linux Cross-Platform

/MacCF/User list MacOSX


Required plugins for this example: MBS MacCF Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacCF/User list MacOSX

This example is the version from Sun, 17th Mar 2012.

Project "User list MacOSX.xojo_binary_project"
Class MainWindow Inherits Window
Control List Inherits Listbox
ControlInstance List Inherits Listbox
End Control
EventHandler Sub Open() dim i as DarwinUserMBS dim l as DarwinUserListMBS dim n as integer dim c as integer dim a as integer // we look what user the current desktop belongs l=new DarwinUserListMBS c=l.Count for n=0 to c i=l.User(n) if i<>nil and i.Ready then List.AddRow i.Name a=List.LastIndex List.cell(a,1)=str(i.UserID) List.cell(a,2)=str(i.GroupID) List.cell(a,3)=i.HomePath List.cell(a,4)=i.Shell List.cell(a,5)=i.LongName end if next Exception MsgBox "We have a problem."+chr(13)+"This demo works only on Mac OS X!" End EventHandler
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
EventHandler Sub Open() if TargetMachO then // ok else MsgBox "This needs a Mach-O target running on Mac OS X." end if End EventHandler
End Class
End Project

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


The biggest plugin in space...