• 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
Re: Table view data source methods order?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Table view data source methods order?


  • Subject: Re: Table view data source methods order?
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 3 Aug 2009 14:05:32 -0700

On Aug 3, 2009, at 13:24, Chase Meadors wrote:

Maybe I'm missing what you mean here, but if I do that, then what should I do in the objectValueFor... method?

On Aug 3, 2009, at 2:13 PM, Quincey Morris wrote:

Yes, but according to that message you *didn't* set the correct selection index in #1. I really think that's what you need to do.

The objectValue... method should return the index of the selected menu item, because that's what the value is for that column.


I'm going to change my earlier answer on the other part.

When you don't implement tableView:datCellForTableColumn:row:, the table view obviously has to set the object value of the (shared) cell it knows about for each row, and it would do that by calling the objectValue... data source method *after* it has found the cell to use. My *expectation* would be that it'd do the same thing for the result of dataCell..., but the documentation doesn't say anything about that one way or the other.

So I would still try having dataCell... retrieve the selected menu item index (possibly by calling objectValue... directly) and see if setting it solves the problem. If so, then answer is apparently that dataCell... is required to set up the desired object value. If not, this is a false trail.


_______________________________________________

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


  • Follow-Ups:
    • Re: Table view data source methods order?
      • From: Chase Meadors <email@hidden>
References: 
 >Table view data source methods order? (From: Chase Meadors <email@hidden>)
 >Re: Table view data source methods order? (From: Andy Lee <email@hidden>)
 >Re: Table view data source methods order? (From: Quincey Morris <email@hidden>)
 >Re: Table view data source methods order? (From: Chase Meadors <email@hidden>)

  • Prev by Date: Re: Screen savers on Snow Leopard
  • Next by Date: Re: NSSound play often fails
  • Previous by thread: Re: Table view data source methods order?
  • Next by thread: Re: Table view data source methods order?
  • Index(es):
    • Date
    • Thread