• 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: Problem subclassing a NSCell in a NSTableView (more)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem subclassing a NSCell in a NSTableView (more)


  • Subject: Re: Problem subclassing a NSCell in a NSTableView (more)
  • From: kawana <email@hidden>
  • Date: Thu, 1 Jun 2006 12:48:16 +0900

Alex,

If you want to change drawing highlight selection,

NSTableView

- (void)highlightSelectionInClipRect:(NSRect)clipRect


- Kazuhiro Kawana



On 2006/05/31, at 23:37, Alexander Lamb wrote:

However if I add the undocumented method, everything works... except if I use alternate row colors: it inverts the color of the alternate colors (e.g. a selected row has the wrong alternate color)
--
Alexander Lamb
email@hidden




On May 31, 2006, at 4:31 PM, Alexander Lamb wrote:

Well, I tried subclassing the TextFieldCell as suggested and implementing:

- (NSColor *)highlightColorWithFrame:(NSRect)cellFrame inView: (NSView *)controlView
{
return nil;
}


But it is not sufficient. It looks like the table view itself highlights the row!


-- Alexander Lamb email@hidden



On May 31, 2006, at 3:50 PM, Jim Correia wrote:

On May 31, 2006, at 9:37 AM, Alexander Lamb wrote:

Now, obviously, this looks like a private method:-) But until someone has a wonderfull and documented way of handling this problem, that's how I will do it!

http://lists.apple.com/archives/cocoa-dev/2006/Feb/msg01282.html

Jim
_______________________________________________
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

_______________________________________________ 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

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40bu.iij4u.or.jp


This email sent to email@hidden




_______________________________________________
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: 
 >Problem subclassing a NSCell in a NSTableView (From: Alexander Lamb <email@hidden>)
 >Re: Problem subclassing a NSCell in a NSTableView (From: Alexander Lamb <email@hidden>)
 >Re: Problem subclassing a NSCell in a NSTableView (solution) (From: Alexander Lamb <email@hidden>)
 >Re: Problem subclassing a NSCell in a NSTableView (solution) (From: Jim Correia <email@hidden>)
 >Re: Problem subclassing a NSCell in a NSTableView (solution) (From: Alexander Lamb <email@hidden>)
 >Re: Problem subclassing a NSCell in a NSTableView (more) (From: Alexander Lamb <email@hidden>)

  • Prev by Date: Re: NSAppleScript not in the main thread
  • Next by Date: Putting object references into Pasteboard for Drag And Drop
  • Previous by thread: Re: Problem subclassing a NSCell in a NSTableView (more)
  • Next by thread: Prevent transient attributes to mark the database as dirty ?
  • Index(es):
    • Date
    • Thread