Re: Bindings / NSTableView (limitation ?)
Re: Bindings / NSTableView (limitation ?)
- Subject: Re: Bindings / NSTableView (limitation ?)
- From: "I. Savant" <email@hidden>
- Date: Wed, 27 Jun 2007 12:31:44 -0400
On 6/27/07, Daniel Angermeier <email@hidden> wrote:
I would like to dinamically change the color of particluar rows in a
table view, depending on app state.
Before I was using the table view data source approach,
and this was failrly easy to do,
by just returning a stringWithAttributes in
It's a better idea to use the NSTableView delegate method
-tableView:willDisplayCell:forTableColumn:row: for this sort of thing,
but in general, Bindings and datasource/delegate methods can (and
sometimes must) be intermingled.
Google around for -tableView:willDisplayCell:forTableColumn:row:
examples; there're plenty.
--
I.S.
_______________________________________________
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