Skip navigation.
 
mlRe: NSBrowserCell not extensible; need sample using NSButtonCell
FROM : Corbin Dunn
DATE : Fri Jul 21 00:28:38 2006

>
> That's what was throwing me. Neither NSBrowserCell nor NSCell have 
> any kind of "background" property to set. By overridding 
> highlightColorWithFrame: you can return a clear color that 
> effectively suppressed the background of the base class. So, 
> NSBrowserCell does it one way and NSTextFieldCell does it completely 
> differently. Oh, well. ;)
>

>> Okay -- I'm still confused as to what you want to do.

>
> It doesn't matter -- it's a moot point. The work that I thought 
> NSBrowserCell was doing (and what I thought I would have to 
> replicate) is done by NSOutlineView.
>
> Thanks for getting me going in the right direction.
>


Super! I should note that NSBrowserCell does draw the little triangle 
on the right-hand side of the cell when "isLeaf == NO". This is 
automatically set when it is used in NSBrowser.

-corbin

Related mailsAuthorDate
mlNSBrowserCell not extensible; need sample using NSButtonCell James Bucanek Jul 20, 18:53
mlRe: NSBrowserCell not extensible; need sample using NSButtonCell Corbin Dunn Jul 20, 19:23
mlRe: NSBrowserCell not extensible; need sample using NSButtonCell James Bucanek Jul 20, 21:48
mlRe: NSBrowserCell not extensible; need sample using NSButtonCell Corbin Dunn Jul 20, 23:32
mlRe: NSBrowserCell not extensible; need sample using NSButtonCell James Bucanek Jul 21, 00:17
mlRe: NSBrowserCell not extensible; need sample using NSButtonCell Corbin Dunn Jul 21, 00:28
mlRe: NSBrowserCell not extensible; need sample using NSButtonCell James Bucanek Jul 21, 00:31