• 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: Custom highlight selection in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom highlight selection in NSOutlineView


  • Subject: Re: Custom highlight selection in NSOutlineView
  • From: "Alan Smith" <email@hidden>
  • Date: Wed, 20 Sep 2006 07:26:04 -0400

I had this problem with an NSOutlineView when I set the classPrototype
to an NSBrowserCell. NSBrowserCell has its own highlighting methods. I
simply overrid the one that asked for the highlight color and returned
nil.

Since you are using a custom cell class I suggest you look through
that code (specifically, drawInteriorWithFrame:, or whatever, the cell
drawing one) and find where it is drawing a rectangle.

If you weren't using a custom cell you could use [outlineView
cellPrototype] (or a method to that affect) and find out what cell it
was using. Then use class-dump on the framework that contained that
cell class and look for any highlight type methods. That is how I got
a NSBrowserCell class to draw a gradient on itself instead of a
uniform color.

Hope this helps, Alan
--
// Quotes from yours truly -------------------------
"You don't forget, you just don't remember."
"Maturity resides in the mind."
"Silence is the Universe's greatest gift."
_______________________________________________
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


  • Follow-Ups:
    • Re: Custom highlight selection in NSOutlineView
      • From: David Aames <email@hidden>
References: 
 >Custom highlight selection in NSOutlineView (From: David Aames <email@hidden>)

  • Prev by Date: Custom highlight selection in NSOutlineView
  • Next by Date: Re: Custom highlight selection in NSOutlineView
  • Previous by thread: Custom highlight selection in NSOutlineView
  • Next by thread: Re: Custom highlight selection in NSOutlineView
  • Index(es):
    • Date
    • Thread