I was looking for way to have different cell classes in the same column of table view. I’ve found solution - to override dataCellForRow() of NSTableColumn.
So I’ve added new class to my project - TableColumnAdditions.h
TableColumnAdditions.m like this
But I’m wondering on two issues - 1st) Xcode shows two warnings at .h file:
Can’t figure what I’m doing wrong?
2nd) Can’t figure where to override column class in my script. Let it be simple script like this:
set theTV to table view "tasks" of scroll view "view" of window "main"
set theDS to make new data source at end of data sources
set col1 to make new data column at end of data columns of theDS with properties {name:"name"}
set col2 to make new data column at end of data columns of theDS with properties {name:"value"}
set theRow to make new data row at end of data rows of theDS
set content of data cell "name" of theRow to "Option 1"
set content of data cell "value" of theRow to "Text"
set theRow to make new data row at end of data rows of theDS
set content of data cell "name" of theRow to "Option 2"
set contents of data cell "value" of theRow to {"Yes", "No"}
Thanks for help in advance. Hope I’m using right place ( I mean AppleScript Studio & Xcode).