Re: Show/Hide a component?
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.