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:
Pietro Gagliardi 2014-03-03 01:43:18 -05:00
parent 403f9cab35
commit ab2065e5ba
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}
/*