Calling tableView:setObjectValue directly...
Calling tableView:setObjectValue directly...
- Subject: Calling tableView:setObjectValue directly...
- From: "Peter.Teeson" <email@hidden>
- Date: Mon, 8 Mar 2004 13:43:30 -0500
I'm using XCode 1.1 under Mac OS X 10.3.2.
I have a Document app that has a TableView and have implemented the
usual the functions for the informal protocol NSTableDataSource and
they get called when I do the normal sorts of editing on the table
itself.
However one of the columns in my table is deliberately made not
editable. The reason is that it is a calculated value based on what has
been entered in a different column.
I have a Button that invokes code to generate the values for the 'not
editable' column, on a cell by cell basis, and I had thought at first
to try calling [myTable setObjectValue......] but I get compilation
warnings on this telling me it can't find the function and that it may
not respond to the message.
Yet they are there and are being called when editing other columns,
presumably from other methods of NSTableView (at least that's what the
debug stack shows).
So why am I not allowed to call them directly? Or if I am can someone
please suggest what I have misunderstood? Preferably with a code
snippet.
TIA and respect........
Peter
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.