• 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: how do you change the highlight color for rows in an NSOutlineView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do you change the highlight color for rows in an NSOutlineView?


  • Subject: Re: how do you change the highlight color for rows in an NSOutlineView?
  • From: Corbin Dunn <email@hidden>
  • Date: Fri, 3 Jun 2005 10:14:52 -0700

I can override NSCell's highlightColorWithFrame:inView: to return the correct color, but:

(1) The cell doesn’t draw in the outline’s intercell spacing, so we get gaps unless we set the spacing to zero. Is there a better solution?


Maybe override -frameOfCellAtColumn:row: (from NSTableView) to be one pixel bigger?



- (void)highlightSelectionInClipRect:(NSRect)rect

Should be the one (in NSTableView) -- fill it in with the correct highlight color.



...so maybe you'd have better luck overriding that? Also, you could try -[NSTableColumn setDataCell:] instead of posing.


I think this is the best bet. Posing should be the last thing to do.

-corbin _______________________________________________
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: 
 >how do you change the highlight color for rows in an NSOutlineView? (From: Mike Morton <email@hidden>)
 >Re: how do you change the highlight color for rows in an NSOutlineView? (From: Andy Lee <email@hidden>)

  • Prev by Date: fontManager:willIncludeFont:
  • Next by Date: Re: CoreData: Using willSave to update timestamps causes hang?
  • Previous by thread: Re: how do you change the highlight color for rows in an NSOutlineView?
  • Next by thread: Re: NSFileHandle and FIFO files
  • Index(es):
    • Date
    • Thread