Re: making NSProgressIndicator hidden
Re: making NSProgressIndicator hidden
- Subject: Re: making NSProgressIndicator hidden
- From: Christophe Dore <email@hidden>
- Date: Mon, 21 Jan 2002 13:48:18 +0100
You may also overload the class, and its drawRect method, conditionning
the [super drawRect] if you want it to happen.
If you have many of those, it mays be tedious.
In this case, I think you can make a custom View Class as its superview,
and overload display to avoid display propagation to its subviews.
see
http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ApplicationKit/ObjC_classic/Classes/NSView.html#//apple_ref/occ/instm/NSView/display
Stiphane Sudre wrote:
On Sunday, January 20, 2002, at 05:22 PM, Jody Fairchild wrote:
quick question:
i have an NSProgressIndicator in a window created in ib as a
placeholder.
trouble is, i don't want it to show until i'm ready for it ... how
does one
go about hiding/showing such a control programatically? i can't believe
there's not some easy way to do it like there is with NSButton, but i
also
can't seem to find it ...
Oh oh.
How are you hiding your NSButton? I fear some manipulations on the
NSButton attributes...
One solution for hiding/showing widgets:
Hiding:
[myOutlet retain];
[myOutlet removeFromSuperview];
Showing:
[superview addSubview:myOutlet];
[myOutlet release];
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.