Re: setHidden Category
Re: setHidden Category
- Subject: Re: setHidden Category
- From: Ondra Cada <email@hidden>
- Date: Fri, 12 May 2006 17:45:11 +0200
Matthew,
On 12.5.2006, at 17:06, Matthew Weinstein wrote:
I'm wondering if someone has a [NSView setHidden:] category for
Jaguar that they'd be willing to share. My open source qualitative
program has now stopped functioning for Jaguar users (don't know
why I didn't notice the version on setHidden).
I am afraid that setHidden *functionally equivalent to Panther's*
just was not possible (without serious poseAsClassing or ISA-
swizzling or similar hackery).
In Jaguar, to hide a view you have to (a) remove it from superview
(which is swell until you need it to autoresize), or (b) move it to
some surely-out-of-superview-bounds position (which is all right only
for views which do not receive input and cannot become first
responders), or (c) override lotta methods (not for the view to be
hidden, but rather for its superview -- and that is not easy, and
cannot be done from a category without serious hacking).
Perhaps there's some reasonable (d), but I can't think of one offhand.
(Note also that hiding views is generally considered a bad UI: the
user should see what it in stock for him, disabled if not applicable
at the moment, in tabview if there are more modes. I haste to add
there still are cases when hiding is all right, just am pointing out
that one should consider twice before hiding views :))
---
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