• 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: ImageAndTextCell still the way to go for icons in outline views?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: ImageAndTextCell still the way to go for icons in outline views?
      • From: Jens Alfke <email@hidden>
    • RE: ImageAndTextCell still the way to go for icons in outline views?
      • From: Lee Ann Rucker <email@hidden>
    • Re: ImageAndTextCell still the way to go for icons in outline views?
      • From: Jens Alfke <email@hidden>
References: 
 >ImageAndTextCell still the way to go for icons in outline views? (From: Jens Alfke <email@hidden>)

  • Prev by Date: ImageAndTextCell still the way to go for icons in outline views?
  • Next by Date: launching Application from terminal
  • Previous by thread: ImageAndTextCell still the way to go for icons in outline views?
  • Next by thread: Re: ImageAndTextCell still the way to go for icons in outline views?
  • Index(es):
    • Date
    • Thread