• 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 11:21:39 -0800

On Dec 16, 2009, at 10:51 AM, Lee Ann Rucker wrote:

>
>> Don't use an NSButtonCell or an NSBrowserCell.
>
> Just curious - why shouldn't we use an NSBrowserCell? Aside from it not being in an NSBrowser?_______________________________________________

I think you answered your own question. But...

1. It is really made to work in NSBrowser
2. Many properties only pertain to NSBrowser (ie: isLeaf)
3. There is no ivar storage for the image (it is implemented as a side hash table). This isn't necessarily a bad thing.
4. It doesn't descend from NSTextFieldCell, which provides some more editing features not found on NSBrowserCell.

Still, having said that, it will work to use it in an NSTableView (the open/save panel does this, for example). I just don't recommend doing it.

-corbin

_______________________________________________

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

References: 
 >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: Corbin Dunn <email@hidden>)
 >RE: ImageAndTextCell still the way to go for icons in outline views? (From: Lee Ann Rucker <email@hidden>)

  • Prev by Date: Re: [iPhone] Sample code for live camera stream?
  • Next by Date: Re: Question about touchesBegan
  • Previous by thread: RE: 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