• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Calling tableView:setObjectValue directly...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Calling tableView:setObjectValue directly...
      • From: Fritz Anderson <email@hidden>
    • Re: Calling tableView:setObjectValue directly...
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: NSMutableArray morphs itself into an NSArray?
  • Next by Date: RE: NSMutableArray morphs itself into an NSArray?
  • Previous by thread: (no subject)
  • Next by thread: Re: Calling tableView:setObjectValue directly...
  • Index(es):
    • Date
    • Thread