Re: Need a progress indicator in my cell-based NSTableView
Re: Need a progress indicator in my cell-based NSTableView
- Subject: Re: Need a progress indicator in my cell-based NSTableView
- From: Seth Willits <email@hidden>
- Date: Mon, 19 Mar 2012 13:16:11 -0700
On Mar 19, 2012, at 9:43 AM, Michael Crawford wrote:
> Basically, I want the horizontal barber pole animation in my cell-based table-view, in order to represent work-in-progress for some operation queue activity in the app. If anyone knows of a drop-in solution something with a name like NSProgressIndicatorCell, that I can use for this, that would be great.
I've never seen a drop-in solution. And trying to do it with a cell is way too annoying, IMO. Unless you have 50,000 rows in your table which will all have running indicators, just add NSProgressIndicators as subviews of the tableview when they're needed.
In an approach I've used for a long time, the tableview delegate in willDisplayCell: adds or removes an indicator from the tableview depending if it's needed for that cell. If the indicator is not in the tv, it adds it as a subview. If it shouldn't be in the tv, it's removed if it is there. You can optionally set the indicator on the cell and have the cell do the layout.
--
Seth Willits
_______________________________________________
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