NSProgressIndicator in NSTableView
NSProgressIndicator in NSTableView
- Subject: NSProgressIndicator in NSTableView
- From: Jan Van Tol <email@hidden>
- Date: Sat, 24 May 2003 20:34:58 -0500
I know this has been discussed several times before, but I haven't been
able to find a satisfactory solution. I'm using the following code I
adapted from the archives in my NSCell subclass to attempt to display a
progress bar in my table view. The problem is with getting the bar to
animate properly. When I first open the window it's in, it animates
fine, until I resize the window, or click the table or something, when
it stops. It won't animate after that.
- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
[controlView addSubview:progressView];
[progressView setFrame:cellFrame];
}
To me this looks like a pretty hackish solution, but it's the closest
I've gotten this work.
I'm trying to implement a Mail.app-style activity viewer. Is a
tableView even the best way to do this? Perhaps an NSMatrix or custom
view would be easier?
Thanks,
-Jan Van Tol
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.