• 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: Gradient NSOutlineView row - Text color of it's NSTextFieldCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gradient NSOutlineView row - Text color of it's NSTextFieldCell


  • Subject: Re: Gradient NSOutlineView row - Text color of it's NSTextFieldCell
  • From: "Alan Smith" <email@hidden>
  • Date: Sun, 29 Jul 2007 10:34:54 -0400

Florian,

I'm afraid I may have led you off track with that last email. I was
completely wrong, all of it. NSTableView does tell the selected cells
they are highlighted. And isHighlighted is the method you want.

You said the text cells are always one color. I was able to achieve
this by making _highlightColorForCell: not do anything, literally.

- (NSColor*)_highlightColorForCell:(NSCell*)cell
{
}

But, if you change it to return nil,

- (NSColor*)_highlightColorForCell:(NSCell*)cell
{
	return nil;
}

the cells change their text color when selected and back again when unselected.

If this doesn't fix your problem post the code and we will see what we can do.


Cheers, Alan


--
My blog: cocoalate.info

// Things I've said -------------------------
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
"When the World realizes that personal beliefs are not something to
argue or fight over, it shall evolve."
_______________________________________________

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: Gradient NSOutlineView row - Text color of it's NSTextFieldCell
      • From: John Stiles <email@hidden>
References: 
 >Gradient NSOutlineView row - Text color of it's NSTextFieldCell (From: Florian Soenens <email@hidden>)
 >Re: Gradient NSOutlineView row - Text color of it's NSTextFieldCell (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Adding a new object to NSArrayController through bindings
  • Next by Date: Re: EXC_BAD_ACCESS in NSTableView adding object when visible
  • Previous by thread: Re: Gradient NSOutlineView row - Text color of it's NSTextFieldCell
  • Next by thread: Re: Gradient NSOutlineView row - Text color of it's NSTextFieldCell
  • Index(es):
    • Date
    • Thread