NSProgressIndicator and other controls in a cell in an NSTableView?
NSProgressIndicator and other controls in a cell in an NSTableView?
- Subject: NSProgressIndicator and other controls in a cell in an NSTableView?
- From: "l.m.orchard" <email@hidden>
- Date: Tue, 7 Aug 2001 11:50:22 -0400
Okay... moving along with my multi-threaded download manager, I'm
starting to play with NSTableView. So far I understand how to create a
class to act as data source to the table view.
So, I have a list in my app of all the download threads currently running.
Each element in the list can report things like the URL being downloaded
and the progress so far. I want these in the TableView, and I assume I
want to call reloadData: in intervals to reflect the download progress of
the threads. (At first I thought I'd have each download thread notify the
datasource when they changed, which would in turn notify the TableView,
but I figured making the table view reload the data every time a thread
progressed at all would be a bit heavy. Should I not worry about this?)
Anyway, the next question I have it... okay I can display 0-100% in the
table view in text, but can I somehow stick an NSProgressIndicator in
there instead? And maybe even have a small "Cancel" button in the next
column? Or is this just not a good idea at all?
--
Leslie Michael Orchard <email@hidden>
ICQ: 492905 (home) 11082089 (work)
"...see you space cowboy..."