Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.