Design Advice Sought for Interesting NSTableView
Design Advice Sought for Interesting NSTableView
- Subject: Design Advice Sought for Interesting NSTableView
- From: Chris Williams <email@hidden>
- Date: Sun, 18 Nov 2007 18:30:18 -0800
- Thread-topic: Design Advice Sought for Interesting NSTableView
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
_______________________________________________
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