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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to