Re: -NSView setHidden: in 10.2
Re: -NSView setHidden: in 10.2
- Subject: Re: -NSView setHidden: in 10.2
- From: Ondra Cada <email@hidden>
- Date: Mon, 20 Sep 2004 16:45:55 +0200
On 20.9.2004, at 16:33, J Nozzi wrote:
I believe the only reasonable alternative is to retain it and remove
it from its superview, replacing it as needed.
... making sure there will be no problems with autosizing (consider a
view is hidden=taken out, the window gets resized, the view is
shown=put back). It was not exactly easy. There's a plethora of
solutions (and discussions) in the mail archives.
There was a reason, by the way: in NeXTStep, hiding views was
considered a pretty bad UI design: if something does not work in
current circumstances, it should be disabled, not hidden. The user
should see the complete UI. OTOH, if something in some circumstances
does not make sense at all, it belongs into another tab or into another
window. Myself, I can't help it, but the adage still sounds reasonably
to me.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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