Re: making NSProgressIndicator hidden
Re: making NSProgressIndicator hidden
- Subject: Re: making NSProgressIndicator hidden
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 21 Jan 2002 11:54:22 +0100
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];