• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Need a progress indicator in my cell-based NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Need a progress indicator in my cell-based NSTableView (From: Michael Crawford <email@hidden>)

  • Prev by Date: Re: Why so many public properties all up in my grizzle?
  • Next by Date: Re: Device/Resolution independent positioning of GUI items on iOS
  • Previous by thread: Re: Need a progress indicator in my cell-based NSTableView
  • Next by thread: Re: The use of UIActionSheet mysteriously disables our app with a white screen after memory warning.
  • Index(es):
    • Date
    • Thread