• 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: Show/Hide a component?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Show/Hide a component?


  • Subject: Re: Show/Hide a component?
  • From: Jonathan Feinberg <email@hidden>
  • Date: Wed, 20 Mar 2002 12:30:19 -0500

At 10:10 AM -0500 3/20/02, Jonathan Feinberg wrote:
In Java, one would simply component.setVisible(false). What can we do in Cocoa?

Forgive me for not searching the archive before asking.

Put component in invisible NSBox.
Retain component.
To hide: [theComponent removeFromSuperview]
To show: [theBox setContentView:theComponent]

--
Jonathan Feinberg email@hidden Inwood, NY, NY
http://MrFeinberg.com/
_______________________________________________
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: 
 >Show/Hide a component? (From: Jonathan Feinberg <email@hidden>)

  • Prev by Date: Re: Background Only App in Cocoa
  • Next by Date: Re: Scripting a Cocoa app
  • Previous by thread: Show/Hide a component?
  • Next by thread: Re: Show/Hide a component?
  • Index(es):
    • Date
    • Thread