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 protected]>
To: Erg Consultant <[email protected]>
Cc: [email protected]
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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to