• 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: Visiblity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Visiblity


  • Subject: Re: Visiblity
  • From: SA Dev <email@hidden>
  • Date: Thu, 7 Jul 2005 16:58:32 -0400


Available only in 10.3 and above. If you want backward compatibility, you could easily just retain it, remove it from its superview, then add it back in later, releasing when done (the superview retains its subviews when they're added, then releases them when they're removed, so remember to *retain* first ) ... ;-)


Also, this is an area of religious debate, so be warned. Many think it's not a good thing to remove / hide controls. One school of thought is that it's better to simply disable them so the user knows they're there (available) but can't be used at the moment. I tend to agree with this philosophy, though there are *always* exceptions.



On Jul 7, 2005, at 4:38 PM, Lee Morgan wrote:

What about NSView's setHidden: method?

- Lee

On Jul 7, 2005, at 4:28 PM, Theodore H. Smith wrote:


How do you make a control invisible in Cocoa? Is it not actually possible? Or do I just set it's origin off the side of the window, and disable it?


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40silentalcove.net


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Visiblity (From: "Theodore H. Smith" <email@hidden>)
 >Re: Visiblity (From: Lee Morgan <email@hidden>)

  • Prev by Date: Re: Sample Cocoa code to show how to launch a doc by sliding its icon into appl icon
  • Next by Date: Widgets turning white and never unturning white?
  • Previous by thread: Re: Visiblity
  • Next by thread: Substitute for Deprecated NSQuickDrawView?
  • Index(es):
    • Date
    • Thread