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
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 mails | Author | Date |
|---|---|---|
| Chris Williams | Nov 19, 03:30 | |
| j o a r | Nov 19, 04:21 | |
| Jonathon Mah | Nov 19, 06:07 | |
| Chris Williams | Nov 19, 06:37 | |
| j o a r | Nov 19, 09:28 | |
| Chris Williams | Nov 19, 16:42 | |
| I. Savant | Nov 19, 16:46 | |
| Chris Williams | Nov 19, 17:19 |






Cocoa mail archive

