Re: PrefPane contents not being displayed
Re: PrefPane contents not being displayed
- Subject: Re: PrefPane contents not being displayed
- From: glenn andreas <email@hidden>
- Date: Wed, 2 Feb 2005 17:51:56 -0600
On Feb 2, 2005, at 3:58 PM, Kevin Ballard wrote:
On Feb 2, 2005, at 8:27 AM, Tim Conkling wrote:
Oh - I guess I missed that. The custom views I was speaking about
simply don't have any drawing code, but I am using -setHidden on
other controls in the view. Perhaps that is the source of my
problems...
Pre-Panther, how did one go about hiding and showing controls in
NSViews?
Either removing them from the superview (and retaining them) and then
re-adding them, which can be a pain to keep track of, or moving them
out of the visible area in the window (which is also not an optimal
solution).
One can also embed it inside a tab view (without a tab at the top), and
then switch between that tab item and a blank one.
This has the advantage of handling all the retain issues (an no messing
with re-adding them), avoids having to move them, and also properly
deals with things like resizing them.
Glenn Andreas email@hidden
<http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
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