• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hiding Controls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Hiding Controls (From: Chris Allum <email@hidden>)

  • Prev by Date: Re: Hiding Controls
  • Next by Date: Re: Private NIBs?
  • Previous by thread: Re: Hiding Controls
  • Next by thread: Re: Hiding Controls
  • Index(es):
    • Date
    • Thread