8 Oct
2008
8 Oct
'08
3:02 p.m.
With marshmallows! Index: lib/hotcocoa/mappings/table_column.rb =================================================================== --- lib/hotcocoa/mappings/table_column.rb (revision 0) +++ lib/hotcocoa/mappings/table_column.rb (revision 0) @@ -0,0 +1,21 @@ +HotCocoa::Mappings.map :table_column => :NSTableColumn do + + defaults :title => 'Column' + + def init_with_options(table_column, options) + table_column.initWithIdentifier(options.delete(:identifier)) + end + + custom_methods do + + def title + headerCell.stringValue + end + + def title=(newTitle) + headerCell.stringValue = newTitle + end + + end + +end -Ben