Re: Can NSCell draw both an icon and text?
Re: Can NSCell draw both an icon and text?
- Subject: Re: Can NSCell draw both an icon and text?
- From: James Bucanek <email@hidden>
- Date: Wed, 18 May 2005 08:29:08 -0700
Nick Zitzmann wrote on Wednesday, May 18, 2005:
>
>On May 18, 2005, at 8:30 AM, James Bucanek wrote:
>
>> So is this still the only/recommended way of accomplishing this?
>
>I think the NSBrowserCell class can draw both an icon and text, but I
>haven't tried using it outside of an NSBrowser.
I looked at that too, but couldn't tell if NSBrowserCell was married to NSBrowserView. I'll play with that too and see what happens.
>> Does someone have some sample code that does this (I can't image
>> that this hasn't been done a thousand times already)?
>
>There's a class called "ImageAndTextCell" that is part of the
>"DragNDropOutlineView" sample code that comes with Xcode. You could
>try that.
I searched the example code on Apple's web site, and didn't hit that one. I'll take a look.
Thanks for the tips,
James
--
James Bucanek <mailto:email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden