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 10:05:15 -0800
Use the ImageAndTextCell as an example, or some of the later updated ones:
http://developer.apple.com/Mac/library/samplecode/AnimatedTableView/index.html
particularly:
http://developer.apple.com/Mac/library/samplecode/AnimatedTableView/listing22.html
Don't use an NSButtonCell or an NSBrowserCell.
corbin
On Dec 16, 2009, at 9:47 AM, Jens Alfke wrote:
> I'm implementing an outline view whose main column needs to show an icon next to the name, just like the Finder or Safari's bookmarks editor etc. etc. In the past I've always copied the handy ImageAndTextCell class from Apple's DragDropOutlineView sample, but I'm wondering if there is any cleaner way to do this nowadays without having to use a custom cell class. (This does have to remain 10.5-compatible, though.)
>
> I dimly recall having heard of NSBrowserCell being used for this, but I don't remember any details.
> Some apps use NSButtonCell, but it doesn't support editing the text and I need to do that.
_______________________________________________
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