• 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: Spin Progress Indicator is not spinning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spin Progress Indicator is not spinning


  • Subject: Re: Spin Progress Indicator is not spinning
  • From: Nathan Kinsinger <email@hidden>
  • Date: Thu, 6 Nov 2008 02:32:57 -0700

On Nov 3, 2008, at 7:39 PM, Rashmi Vyshnavi wrote:

Hi all,

I am setting a custom view containing a label and spin style progress
indicator. I want the progress indicator to spin when the menu is popped up
(similar to AirPort Menu). The progess indicator does not spin though I call
startAnimation on it. When I change the style to bar the progress indicator
shows progress. Does any one know how get NSProgressIndicator (Spin style)
to spin in Menu..


Thanks,
Rashmi

Setup a delegate to the menu and implement menuWillOpen: then use performSelector:... to start the animation after the current run loop. It seems to me like the indeterminate progress indicator only accepts startAnimation: after it's been drawn.


- (void)menuWillOpen:(NSMenu *)menu
{
	[progressIndicator performSelector:@selector(startAnimation:)
							withObject:self
							afterDelay:0.0
							   inModes:[NSArray arrayWithObject:NSEventTrackingRunLoopMode]];
}

--Nathan


_______________________________________________

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: 
 >Spin Progress Indicator is not spinning (From: "Rashmi Vyshnavi" <email@hidden>)

  • Prev by Date: Core data, NSArrayController and different nibs
  • Next by Date: How can I use NSTextField like a button?
  • Previous by thread: Re: Spin Progress Indicator is not spinning
  • Next by thread: Re: Spin Progress Indicator is not spinning
  • Index(es):
    • Date
    • Thread