Re: Hiding an NSControl
Re: Hiding an NSControl
- Subject: Re: Hiding an NSControl
- From: John Randolph <email@hidden>
- Date: Wed, 3 Sep 2003 16:11:54 -0700
On Sep 3, 2003, at 2:50 PM, John Stiles wrote:
I'm a bit of a neophyte when it comes to Cocoa, so please bear with
me. I've been writing a Cocoa app for the last two months, and usually
a few good books and developer.apple.com are good enough to answer any
questions I have, but this one has me and a coworker both stumped.
What's the easiest way to hide an NSControl?
[myControl retain];
[myControl removeFromSuperview];
.. and then put it back in the view hierarchy when you need it again.
-jcr
_______________________________________________
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.