Re: iTunes style custom class
Re: iTunes style custom class
- Subject: Re: iTunes style custom class
- From: Frank Midgley <email@hidden>
- Date: Wed, 28 Jul 2004 07:35:35 -0500
On Jul 28, 2004, at 7:04 AM, Erik Ableson wrote:
I've been poking around a bit at the various resources on the web, and
(maybe I'm not looking close enough) I haven't found a class that
handles a combination mini icon display and associated text like the
list box on the left pane of the iTunes interface.
Three options:
1. One column for the icon, one for the text.
2. One column containing an attributed string built from the icon and
the string using NSTextAttachment.
3. Use a custom cell class that can draw the icon and the string. See
the ImageAndTextCell class in
/Developer/Examples/AppKit/DragNDropOutlineView.
This comes up often so check the archives for sample code. Searching
for "text image cell" came up with 179 hits...
-Frank
=========================
Frank Midgley
email@hidden
http://homepage.mac.com/knarf
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.