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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to