Skip navigation.
 
mlDesign Advice Sought for Interesting NSTableView
FROM : Chris Williams
DATE : Mon Nov 19 03:30:18 2007

I am making an NSTableView in my app that has one column with an interesting
structure.  Each row in the table will be one subtask that is running for
the application.  I want each row to look like this:

  <task description>
  <count remaining> <progress indicator>

No, that didn't get wrapped funny in email, I want each table row to be
multiple lines.  For example:

  Scanning folder: xx/xxx
  1328 [----------            ]

With (of course) a real progress indicator in there.  Obviously it will be
read-only, and the only action would be that if you click (double-click?) on
a row it would show you more detail on the progress of the task.

My question is how best to implement this.

I clearly will need some subclass of NSCell for the table view, but beyond
that I'm a bit stumped as to the best way to handle it.  Should this be an
NSImageCell with me attempting to draw this myself?  I know how to draw the
text and numbers, but clearly don't want to try to draw the progress
indicator.  So, I'm a bit lost about how to start.

Can anyone help me with advice, a pointer to a sample I've overlooked,
or...?

Thanks,
Chris

Related mailsAuthorDate
mlDesign Advice Sought for Interesting NSTableView Chris Williams Nov 19, 03:30
mlRe: Design Advice Sought for Interesting NSTableView j o a r Nov 19, 04:21
mlRe: Design Advice Sought for Interesting NSTableView Jonathon Mah Nov 19, 06:07
mlRe: Design Advice Sought for Interesting NSTableView Chris Williams Nov 19, 06:37
mlRe: Design Advice Sought for Interesting NSTableView j o a r Nov 19, 09:28
mlRe: Design Advice Sought for Interesting NSTableView Chris Williams Nov 19, 16:42
mlRe: Design Advice Sought for Interesting NSTableView I. Savant Nov 19, 16:46
mlRe: Design Advice Sought for Interesting NSTableView Chris Williams Nov 19, 17:19