Re: NSTableViewSelectionHighlightStyleSourceList interferes with custom NSBrowserCell drawing

2009-05-31 Thread Nathan Kinsinger
On May 31, 2009, at 5:04 PM, Erg Consultant wrote: Because that is how code posted in the archives says to do it. If I use NSImageCell or NSTextFieldCell (which I've tried), the icons never show up. Those work for NSTableView icons but not NSOutlineView icons. Have a look at the SourceV

Re: NSTableViewSelectionHighlightStyleSourceList interferes with custom NSBrowserCell drawing

2009-05-31 Thread Kyle Sluder
On Sun, May 31, 2009 at 4:04 PM, Erg Consultant 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 NS

Re: NSTableViewSelectionHighlightStyleSourceList interferes with custom NSBrowserCell drawing

2009-05-31 Thread Erg Consultant
cocoa-dev@lists.apple.com Sent: Sunday, May 31, 2009 12:55:28 AM Subject: Re: NSTableViewSelectionHighlightStyleSourceList interferes with custom NSBrowserCell drawing I guess my first question is, why are you using an NSBrowserCell for this? NSBrowserCell probably knows nothing about table

Re: NSTableViewSelectionHighlightStyleSourceList interferes with custom NSBrowserCell drawing

2009-05-31 Thread Kyle Sluder
I guess my first question is, why are you using an NSBrowserCell for this? NSBrowserCell probably knows nothing about table view highlighting styles, because its intended use is inside an NSMatrix within an NSBrowser. An image-and-text cell is not hard to create. It can delegate its drawing to a

NSTableViewSelectionHighlightStyleSourceList interferes with custom NSBrowserCell drawing

2009-05-31 Thread Erg Consultant
I have a custom icon in a .tiff that I draw next to my cells in an NSOutlineView table. Everything works fine until I turn on NSTableViewSelectionHighlightStyleSourceList: [ registryOutlineView setSelectionHighlightStyle:NSTableViewSelectionHighlightStyleSourceList ]; When I do that the table