Re: PrefPane contents not being displayed
Re: PrefPane contents not being displayed
- Subject: Re: PrefPane contents not being displayed
- From: John Stiles <email@hidden>
- Date: Wed, 2 Feb 2005 15:54:50 -0800
On Feb 2, 2005, at 3:51 PM, glenn andreas wrote:
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.
I needed to work in 10.2 and hide controls, so I wrote some code which
resized controls to zero width and height. It worked except that the
tabbing order didn't change; I was pretty happy with it at the time. I
might update to the "secret tab view" approach—it seems like a better
technique.
_______________________________________________
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