Re: NSTableViewSelectionHighlightStyleSourceList interferes with custom NSBrowserCell drawing
Re: NSTableViewSelectionHighlightStyleSourceList interferes with custom NSBrowserCell drawing
- Subject: Re: NSTableViewSelectionHighlightStyleSourceList interferes with custom NSBrowserCell drawing
- From: Kyle Sluder <email@hidden>
- Date: Sun, 31 May 2009 16:27:30 -0700
On Sun, May 31, 2009 at 4:04 PM, Erg Consultant
<email@hidden> wrote:
> Because that is how code posted in the archives says to do it.
Where is this code? In any event, it's wrong. It's a convenient
shortcut if NSBrowserCell draws the way you want it to, but obviously
it doesn't.
> If I use NSImageCell or NSTextFieldCell (which I've tried), the icons never show up. Those work for NSTableView icons but not NSOutlineView icons.
That's why I said you need to use your own cell class. You can make
one that simply uses a "child" NSImageCell and "child" NSTextCell to
do its drawing.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden