• 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: [NSTableView] What is the purpose of highlightSelectionInClipRect:????
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSTableView] What is the purpose of highlightSelectionInClipRect:????


  • Subject: Re: [NSTableView] What is the purpose of highlightSelectionInClipRect:????
  • From: email@hidden
  • Date: Sun, 17 Nov 2002 14:10:11 +0100

On dimanche, novembre 17, 2002, at 02:08 AM, Scott Anguish wrote:


On Saturday, November 16, 2002, at 07:37 AM, email@hidden wrote:
- (void)highlightSelectionInClipRect:(NSRect)clipRect
{
[[NSColor redColor] set];
NSRectFill(clipRect);
}

what you see is that the WHOLE NSTableView content is drawn in red. Even with no selection.

So what is the real purpose of highlightSelectionInClipRect?


I think its the stated purpose. it's passing you the rectangle to clip the highlight to, not the highlight selection rect specifically.

Hum, I still don't get it.

If I subclass this method for a NSOutlineView and do nothing in it, then the intercell space is not highlighted.

But the clipRect I'm sent is the whole NSOutlineView frame.

I would have thought this method was used to draw the highlighted rectangle selection. And that the ClipRect was the rectangle of the selection if there's any.

What I'm trying to do is to prevent the drawing of the selection rect when an item is selected.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: [NSTableView] What is the purpose of highlightSelectionInClipRect:???? (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: If Object-C is "the" language, then why is no one using it?
  • Next by Date: NSTableColumn : Help required
  • Previous by thread: Re: [NSTableView] What is the purpose of highlightSelectionInClipRect:????
  • Next by thread: missing textDidEndEditing: NSTextView delegate messages
  • Index(es):
    • Date
    • Thread