Re: Custom highlight selection in NSOutlineView
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