Re: Hiding Controls
Re: Hiding Controls
- Subject: Re: Hiding Controls
- From: David Remahl <email@hidden>
- Date: Sun, 11 Aug 2002 11:51:51 +0200
>
Hi All,
>
>
I'm quite new at Cocoa, having come from a Carbon background, and I am
>
unable to find a way to programmatically hide controls/views.
>
>
For example, I have a progress indicator which I would like to hide when
>
it is complete, and show when I need it show progress again. A bit like
>
the spinning arrows in Mail.
>
>
Is it even possible in Cocoa? If so, how can I do it?
>
>
Thanks for any help,
>
>
Chris
The fact that there is no way to hide a view in Cocoa is a consious design
desission. The NeXT engineers hosted the GUI idea that hiding things from
the user was a bad thing to do.
Therefore, you will have to temporarily remove the view from its superview,
and reinsert it when you want it displayed again. Don't forget to retain the
view before removing it from its superview.
/ Rgds, David
_______________________________________________
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.