Re: Handling hilighted row in NSTableView with bindings
Re: Handling hilighted row in NSTableView with bindings
- Subject: Re: Handling hilighted row in NSTableView with bindings
- From: Yann Bizeul <email@hidden>
- Date: Mon, 26 Sep 2005 21:59:26 +0200
You can't do it in the delegate method -tableView:willDisplayCell:..?
This means I must parse the NSAttributedString, finding colors I use
and replace them before displaying the cell.
In this case, if I decide to change colors, I will have to change the
code in both methods, that does not sound nice to me :-/
Yann Bizeul • yann at tynsoe.org
Cocoa Developer
Tynsoe Projects
BuddyPop • GeekTool • SSH Tunnel Manager • ...
http://projects.tynsoe.org/
Le 26 sept. 05 à 22:03, Ryan Stevens a écrit :
You can't do it in the delegate method -tableView:willDisplayCell:..?
On Sep 26, 2005, at 7:58 AM, Yann Bizeul wrote:
Hello list.
Once again, I'm trying to work with CoreData for a new
application.
What I'm trying to do is feed a NSTableView with objects for
an NSArrayController.
Actually, I bound the NSTableView cell to
myController.selection, and use a valueTransformer to transform my
custom object to a NSAttributedString (I need to put colors in the
text). I could have bind directly to an "attributedString" key of
my object, but I thought the use of a NSValueTransformer was
better regarding MVC coding.
So far, this seem to work fine, but I need to change the
colors used when the line is hilighted in the NSTableView, to
transform black as white, and anything necessary to make the text
readable.
Did anyone already deal with this, or can point me to some
documentaion I missed ?
Yann Bizeul • yann at tynsoe.org
Cocoa Developer
Tynsoe Projects
BuddyPop • GeekTool • SSH Tunnel Manager • ...
http://projects.tynsoe.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden