• 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
Source list with counter next to item title
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Source list with counter next to item title


  • Subject: Source list with counter next to item title
  • From: GbT <email@hidden>
  • Date: Mon, 19 Nov 2007 10:14:30 +0100

What's the best way to have a sourcelist with a counter next to the title as
you see in many apps (Mail and other indie apps)? I mean the grey
circle-ellipse with the number of items written inside it.
Maybe I need to subclass NSCell and override the drawInteriorWithFrame:
method, but how could I set the counter from, let's say, an arraycontroller?
Would it be possible using bindings?

Who could give me a detailed explanation of the besth method to achieve
that? I read other posts and articles about subclassing NSCell but none of
that seems clear and easy to do.

Thanks a lot.
_______________________________________________

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: Source list with counter next to item title
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: CATextLayer and CAConstraint
  • Next by Date: Re: Source list with counter next to item title
  • Previous by thread: Re: Programatically creating a checkbox
  • Next by thread: Re: Source list with counter next to item title
  • Index(es):
    • Date
    • Thread