Re: Hiding a view
Re: Hiding a view
- Subject: Re: Hiding a view
- From: Ondra Cada <email@hidden>
- Date: Thu, 25 Oct 2001 16:24:08 +0100
rsharp,
>
>>>>> rsharp (r) wrote at Thu, 25 Oct 2001 07:36:09 -0500 (CDT):
r> >Move it well outside its superview (eg. set its origina to [100000,origy]
r> >or so).
r>
r> Are you serious? And what happens if you have "geometry management" where
r> other objects are posistioned relative to that subview?
r>
r> Visibility and position should _not_ be dependent upon each other.
In theory, I do heartily agree.
In practice, nothing's simpler than making your geometry dependences modulo
100000, ie. instead of setting position x of view A to NSMinX([viewB frame]),
you would set it to NSMinX([viewB drame])0000.
r> If Cocoa doesn't have a Show/Hide API then it really should.
It should, but I'd say it has a very low priority. There is a great number
of problems without a workaround, or with a very complicated ones; this is
quite simple.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc