Hiding an NSControl
Hiding an NSControl
- Subject: Hiding an NSControl
- From: John Stiles <email@hidden>
- Date: Wed, 3 Sep 2003 14:50:44 -0700
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? I've found that setting
its frame size to {0.0, 0.0} does the trick, but then re-showing it is
a bit of a pain because I have to remember how big it used to be. I
suppose I could do the old-school "System 6" approach and add some
humongous value to the control's position, moving it way outside of the
visible area of the superview... but haven't things gotten a little
more advanced than that? :)
_______________________________________________
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.