Ah there we go; columnWithIdentifier: returns an index; we wanted tableColumnWithIdentifier:. Now to fix the crashing when getting list information...
This commit is contained in:
parent
403f9cab35
commit
ab2065e5ba
|
@ -154,7 +154,7 @@ var (
|
|||
_NSTableColumn = objc_getClass("NSTableColumn")
|
||||
|
||||
_initWithIdentifier = sel_getUid("initWithIdentifier:")
|
||||
_columnWithIdentifier = sel_getUid("columnWithIdentifier:")
|
||||
_tableColumnWithIdentifier = sel_getUid("tableColumnWithIdentifier:")
|
||||
)
|
||||
|
||||
func newListboxTableColumn() C.id {
|
||||
|
@ -166,7 +166,7 @@ func newListboxTableColumn() C.id {
|
|||
}
|
||||
|
||||
func listboxTableColumn(listbox C.id) C.id {
|
||||
return C.objc_msgSend_id(listbox, _columnWithIdentifier, listboxItemKey)
|
||||
return C.objc_msgSend_id(listbox, _tableColumnWithIdentifier, listboxItemKey)
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue