Non-editable TableView and the Evil NSEditorBinder
Non-editable TableView and the Evil NSEditorBinder
- Subject: Non-editable TableView and the Evil NSEditorBinder
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sat, 2 Aug 2008 20:30:03 +0700
I have a TableView with DataSource who's columns are set (in IB) to
Editable.
When the thing gets loaded from its nib I do for its columns:
NSTextFieldCell *aCell = [ aTableColumn dataCell ];
[ aCell setEditable: NO ];
[ aCell setSelectable: YES ];
So I have a table with selectable, but not editable cells. Perfect.
Then I tried to use an NSArrayController instead of the DataSource.
But now some evil NSEditorBinder comes and makes my cells editable
again. Most annoying!
2008-08-02 20:02:07.001 GetMetaData[1266] -[GmdCell setEditable:] 1
self: 0x3ef4f0 -- bad
#1 0x93a03304 in -[NSEditorBinder
_adjustStatesOfObject:mode:state:triggerRedisplay:] ()
#2 0x93a05740 in -[NSValueBinder
updateTableColumnDataCell:forDisplayAtIndex:] ()
#3 0x93a05ed8 in -[NSTextValueBinder
updateTableColumnDataCell:forDisplayAtIndex:] ()
#4 0x93a05664 in -[_NSBindingAdaptor
tableColumn:willDisplayCell:row:] ()
#5 0x93862ffc in -[NSTableView
_sendDelegateWillDisplayCell:forColumn:row:] ()
#6 0x93862a3c in -[NSTableView _drawContentsAtRow:column:clipRect:] ()
#7 0x93862430 in -[NSTableView drawRow:clipRect:] ()
#8 0x938621ec in -[NSTableView drawRowIndexes:clipRect:] ()
#9 0x93861874 in -[NSTableView drawRect:] ()
Is there any way to stop this nefarious interference with my cells?
Or should I just ignore these newfangled bindings stuff?
On Tiger 10.4.11
Kind regards,
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden