Re: ImageAndTextCell still the way to go for icons in outline views?
Re: ImageAndTextCell still the way to go for icons in outline views?
- Subject: Re: ImageAndTextCell still the way to go for icons in outline views?
- From: Corbin Dunn <email@hidden>
- Date: Wed, 16 Dec 2009 11:21:39 -0800
On Dec 16, 2009, at 10:51 AM, Lee Ann Rucker wrote:
>
>> Don't use an NSButtonCell or an NSBrowserCell.
>
> Just curious - why shouldn't we use an NSBrowserCell? Aside from it not being in an NSBrowser?_______________________________________________
I think you answered your own question. But...
1. It is really made to work in NSBrowser
2. Many properties only pertain to NSBrowser (ie: isLeaf)
3. There is no ivar storage for the image (it is implemented as a side hash table). This isn't necessarily a bad thing.
4. It doesn't descend from NSTextFieldCell, which provides some more editing features not found on NSBrowserCell.
Still, having said that, it will work to use it in an NSTableView (the open/save panel does this, for example). I just don't recommend doing it.
-corbin
_______________________________________________
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