• 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
Unable to get animation of NSProgressIndicator on my custom view (subclassed)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unable to get animation of NSProgressIndicator on my custom view (subclassed)


  • Subject: Unable to get animation of NSProgressIndicator on my custom view (subclassed)
  • From: cocoa learner <email@hidden>
  • Date: Sat, 16 Jan 2010 01:33:27 +0530

Hi all,

My NSProgressIndicator is not animating (determinant/indeterminant in both
the cases), I have implemented the arrangement in following way -

1>. main window,
2>. NSImageView over main window's content view,
3>. Then my custom view(subclassed NSView), over NSImageView,
4>. Then over my custom view (subclassed NSView), I have
NSProgressIndicator.

These all arrangements are done using IB.

But when I am executing following code, I am not see animation in my
progress bar -

[progressBar setHidden: NO];

[progressBar setIndeterminate: YES];

[progressBar startAnimation: self];

[progressBar displayIfNeeded];

Any body has any suggestion how it will work???
Do I need to implement any other method in my custom view subclass, except -
drawRect???

My NSView subclass implementation looks like this -

@implementation MyContentView


- (id)initWithFrame: (NSRect)frame

{

    self = [super initWithFrame:frame];

    if (self)

{

        // Initialization code here.

    }

    return self;

}


- (void)drawRect:(NSRect)rect

{

[[NSColor grayColor] set];

[NSBezierPath fillRect: rect];

}


@end

Regards,
Cocoa.learner
_______________________________________________

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

  • Follow-Ups:
    • Re: Unable to get animation of NSProgressIndicator on my custom view (subclassed)
      • From: Quincey Morris <email@hidden>
    • Re: Unable to get animation of NSProgressIndicator on my custom view (subclassed)
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Why does my menu have mutually exclusive states?
  • Next by Date: Re: Unable to get animation of NSProgressIndicator on my custom view (subclassed)
  • Previous by thread: Re: Why does my menu have mutually exclusive states?
  • Next by thread: Re: Unable to get animation of NSProgressIndicator on my custom view (subclassed)
  • Index(es):
    • Date
    • Thread