Unable to get animation of NSProgressIndicator on my custom view (subclassed)
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