• 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: Handling hilighted row in NSTableView with bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Handling hilighted row in NSTableView with bindings (From: Yann Bizeul <email@hidden>)
 >Re: Handling hilighted row in NSTableView with bindings (From: Ryan Stevens <email@hidden>)

  • Prev by Date: Re: Handling hilighted row in NSTableView with bindings
  • Next by Date: Determining current language
  • Previous by thread: Re: Handling hilighted row in NSTableView with bindings
  • Next by thread: CD: subclassing NSArrayController
  • Index(es):
    • Date
    • Thread