• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hiding a view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Hiding a view (From: rsharp <email@hidden>)

  • Prev by Date: Re: Hiding a view
  • Next by Date: NSDebug.h and frame pointers
  • Previous by thread: Re: Hiding a view
  • Next by thread: Re: Hiding a view
  • Index(es):
    • Date
    • Thread