Skip navigation.
 
mlSource list with counter next to item title
FROM : GbT
DATE : Mon Nov 19 10:14:30 2007

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.

Related mailsAuthorDate
mlSource list with counter next to item title GbT Nov 19, 10:14
mlRe: Source list with counter next to item title Scott Anguish Nov 19, 10:23
mlRe: Source list with counter next to item title Scott Anguish Nov 19, 10:30
mlRe: Source list with counter next to item title GbT Nov 19, 10:42
mlRe: Source list with counter next to item title GbT Nov 19, 10:54
mlRe: Source list with counter next to item title Conor Nov 20, 12:15
mlRe: Source list with counter next to item title GbT Nov 20, 15:38
mlRe: Source list with counter next to item title Conor Nov 21, 10:57