• 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
Hiding an NSControl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: Hiding an NSControl
      • From: John Randolph <email@hidden>
    • Re: Hiding an NSControl
      • From: "Alastair J.Houghton" <email@hidden>
References: 
 >Re: Selector runs only once (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Loading of NSWindows during awakeFromNib
  • Next by Date: Re: Newbie question: forcing data format during saveDocumentTo:
  • Previous by thread: Re: Selector runs only once
  • Next by thread: Re: Hiding an NSControl
  • Index(es):
    • Date
    • Thread