Re: Hiding Controls
Re: Hiding Controls
- Subject: Re: Hiding Controls
- From: Nathan Day <email@hidden>
- Date: Sun, 11 Aug 2002 22:10:17 +0930
On Sunday, August 11, 2002, at 07:54 PM, Chris Allum wrote:
Do you know how I can get a view/control like those spinning arrows in
Mail?
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.
How do I do that?
Views remember there position so removing them and reinserting them back
is quite straight forward.
to remove
[[theView retain] removeFromSuperview];
and then to insert back in
[theSuperView addSubview:theView];
[theView release];
The spinning control is not available directly from cocoa, but you can
access with carbon, someone on this or the Omin mailing list said that
it is available with Mac OS X.ii (Jaguar), so you might want to wait the
13 day or what every it is.
Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
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.