summaryrefslogtreecommitdiff
path: root/listbox_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-10 11:38:52 -0400
committerPietro Gagliardi <[email protected]>2014-06-10 11:38:52 -0400
commita3222f248d25f284d5f4b7c0626ab1140bb0db9a (patch)
tree4b5a6f4665a44f30e106435b275ca1fcac196190 /listbox_darwin.go
parent37bc89fe52c8c6c4c56c4da69126f2d50101e194 (diff)
More go fmt.
Diffstat (limited to 'listbox_darwin.go')
-rw-r--r--listbox_darwin.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/listbox_darwin.go b/listbox_darwin.go
index 8c4cb17..4edb19c 100644
--- a/listbox_darwin.go
+++ b/listbox_darwin.go
@@ -2,10 +2,6 @@
package ui
-import (
- // ...
-)
-
/*
The Cocoa API was not designed to be used directly in code; you were intended to build your user interfaces with Interface Builder. There is no dedicated listbox class; we have to synthesize it with a NSTableView. And this is difficult in code.
@@ -81,7 +77,6 @@ func listboxArrayItemAt(array C.id, index int) string {
return fromListboxItem(dict)
}
-
/*
Now we have to establish the binding. To do this, we need the following things:
- the object to bind (NSTableColumn)
@@ -139,7 +134,7 @@ The actual creation code was moved to objc_darwin.go.
func makeListboxScrollView(listbox C.id) C.id {
scrollview := makeScrollView(listbox)
- C.giveScrollViewBezelBorder(scrollview) // this is what Interface Builder gives the scroll view
+ C.giveScrollViewBezelBorder(scrollview) // this is what Interface Builder gives the scroll view
return scrollview
}
@@ -190,7 +185,7 @@ func listboxSelectedIndices(listbox C.id) (list []int) {
list = make([]int, count)
list[0] = int(C.listboxIndexesFirst(indices))
for i := 1; i < count; i++ {
- list[i] = int(C.listboxIndexesNext(indices, C.uintptr_t(list[i - 1])))
+ list[i] = int(C.listboxIndexesNext(indices, C.uintptr_t(list[i-1])))
}
return list
}