Re: NSTableViewSelectionHighlightStyleSourceList interferes with custom NSBrowserCell drawing
Re: NSTableViewSelectionHighlightStyleSourceList interferes with custom NSBrowserCell drawing
- Subject: Re: NSTableViewSelectionHighlightStyleSourceList interferes with custom NSBrowserCell drawing
- From: Erg Consultant <email@hidden>
- Date: Sun, 31 May 2009 16:04:52 -0700 (PDT)
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.
________________________________
From: Kyle Sluder <email@hidden>
To: Erg Consultant <email@hidden>
Cc: email@hidden
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 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 an NSImageCell and NSTextFieldCell.
--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