summaryrefslogtreecommitdiff
path: root/listbox_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-03 01:51:54 -0500
committerPietro Gagliardi <[email protected]>2014-03-03 01:51:54 -0500
commit842815b2e0b2288500529e599d63eb8696726143 (patch)
tree9a2abf73b98e2f73b8faf2f00b74f9077255f8d8 /listbox_darwin.go
parentab2065e5bac5f391e494ed7e5cafb10cf08d19d7 (diff)
Fixed selection grabbing and also append/insert/removal crashes: all were selector name typos. Also some TODOs Now to make this scroll/confine it to a scroll view...
Diffstat (limited to 'listbox_darwin.go')
-rw-r--r--listbox_darwin.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/listbox_darwin.go b/listbox_darwin.go
index dcd0371..e32443d 100644
--- a/listbox_darwin.go
+++ b/listbox_darwin.go
@@ -58,7 +58,7 @@ NSArrayController is what we bind.
This is what provides the actual list modification methods.
- (void)addObject:(id)object
adds object to the end of the list
- - (void)insertObject:(id)object atArrangedObjectsIndex:(NSInteger)index
+ - (void)insertObject:(id)object atArrangedObjectIndex:(NSInteger)index
adds object in the list before index
- (void)removeObjectAtArrangedObjectIndex:(NSInteger)index
removes the object at index
@@ -75,8 +75,8 @@ var (
_setAutomaticallyRearrangesObjects = sel_getUid("setAutomaticallyRearrangesObjects:")
_addObject = sel_getUid("addObject:")
- _insertObjectAtArrangedObjectsIndex = sel_getUid("insertObject:atArrangedObjectsIndex:")
- _removeObjectAtArrangedObjectsIndex = sel_getUid("removeObjectAtArrangedObjectsIndex:")
+ _insertObjectAtArrangedObjectIndex = sel_getUid("insertObject:atArrangedObjectIndex:")
+ _removeObjectAtArrangedObjectIndex = sel_getUid("removeObjectAtArrangedObjectIndex:")
_arrangedObjects = sel_getUid("arrangedObjects")
_objectAtIndex = sel_getUid("objectAtIndex:")
)
@@ -92,12 +92,12 @@ func appendListboxArray(array C.id, what string) {
}
func insertListboxArrayBefore(array C.id, what string, before int) {
- C.objc_msgSend_id_uint(array, _insertObjectAtArrangedObjectsIndex,
+ C.objc_msgSend_id_uint(array, _insertObjectAtArrangedObjectIndex,
toListboxItem(what), C.uintptr_t(before))
}
func deleteListboxArray(array C.id, index int) {
- objc_msgSend_uint(array, _removeObjectAtArrangedObjectsIndex, uintptr(index))
+ objc_msgSend_uint(array, _removeObjectAtArrangedObjectIndex, uintptr(index))
}
func indexListboxArray(array C.id, index int) string {