• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iTunes style custom class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: iTunes style custom class
      • From: Erik Ableson <email@hidden>
References: 
 >iTunes style custom class (From: Erik Ableson <email@hidden>)

  • Prev by Date: Re: Where is NSList?
  • Next by Date: Bug database or known issues
  • Previous by thread: iTunes style custom class
  • Next by thread: Re: iTunes style custom class
  • Index(es):
    • Date
    • Thread