• 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: Highlight color of a NSTableView row
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Highlight color of a NSTableView row


  • Subject: Re: Highlight color of a NSTableView row
  • From: Corbin Dunn <email@hidden>
  • Date: Fri, 11 Apr 2008 08:44:30 -0700



1. Subclass NSCell, NSTextFieldCell, or whatever other cell you want.
2. Override:

- (NSColor *)highlightColorWithFrame:(NSRect)cellFrame inView: (NSView *)controlView

and return nil.

How would I go about subclassing NSTextFieldCell & NSImageCell and then using these cell with my NSTableView?

It's pretty easy. Create a subclass of each, override the method. In IB 3 on Leopard, select the cell, goto the info for it, and change the class to be your new class. I know that's pretty vague, and if you want more detailed steps, let me know. If you are using Tiger, it's a little different.


corbin
_______________________________________________

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


References: 
 >Highlight color of a NSTableView row (From: Eric Gorr <email@hidden>)
 >Re: Highlight color of a NSTableView row (From: Ben Lachman <email@hidden>)
 >Re: Highlight color of a NSTableView row (From: Cathy Shive <email@hidden>)
 >Re: Highlight color of a NSTableView row (From: Eric Gorr <email@hidden>)
 >Re: Highlight color of a NSTableView row (From: Eric Gorr <email@hidden>)
 >Re: Highlight color of a NSTableView row (From: Corbin Dunn <email@hidden>)
 >Re: Highlight color of a NSTableView row (From: Eric Gorr <email@hidden>)

  • Prev by Date: Re: Highlight color of a NSTableView row
  • Next by Date: Re: custom dragging destination feedback in an NSTableView
  • Previous by thread: Re: Highlight color of a NSTableView row
  • Next by thread: Re: Highlight color of a NSTableView row
  • Index(es):
    • Date
    • Thread