Example: /MacCF/Group list MacOSX

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

/MacCF/Group 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/Group list MacOSX

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

Project "Group 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 DarwinGroupMBS dim l as DarwinGroupListMBS dim n as integer dim c as integer dim a as integer dim s as String dim ii,cc as integer l=new DarwinGroupListMBS c=l.Count for n=0 to c i=l.Group(n) if i<>nil and i.Ready then List.AddRow i.Name a=List.LastIndex List.cell(a,1)=str(i.GroupID) List.cell(a,2)=i.Password s="" cc=i.UserCount-1 for ii=0 to cc s=s+i.UserName(ii) if ii<cc then s=s+", " end if next List.cell(a,3)=s 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.


💬 Ask a question or report a problem