• 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: Is there any overhead on hidden views?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there any overhead on hidden views?


  • Subject: Re: Is there any overhead on hidden views?
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 2 May 2006 02:34:35 +0200

Greg,

On 2.5.2006, at 2:26, Greg Herlihy wrote:

Actually, hidden views do incur some operational overhead, but only on Panther and later systems (that is, OS X 10.3 and later).

Well... not quite.

Prior to Panther, hiding a view removed it from its view hierarchy.

Correct me please if I am wrong, but priori to Panther it just *was not possible* to hide a view. Therefore, if you needed that, you had to employ some work-around. Which may (or may not) have been removing it from the hiearchy. You can still do that, *exactly* as you used to pre-Panther, if you want to.


Starting with Panther, this behavior changed.

Unless I am much mistaken, nothing changed at all; hiding was *added* instead.


But in exchange for hidden views' overhead comes some welcome convenience: unhiding a view on a Panther or later OS is much less of a hassle than it used to be because the hidden view will be correctly proportioned for its window. In contrast, when unhiding a view on a pre-Panther OS, the view would have kept the same dimensions that it had at the time when it was hidden - a fact which becomes something of a problem if its window has since been resized.

Actually, if this was an issue, a different work-around used to be employed -- namely, moving the view outside of its superview frame (something like [10000,10000]). Now *this* is one work-around which is not needed anymore (it was ugly, error-prone, and brought number of generally unwanted consequences).
---
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
  • Follow-Ups:
    • Re: Is there any overhead on hidden views?
      • From: "Greg Herlihy" <email@hidden>
References: 
 >Re: Is there any overhead on hidden views? (From: "John C. Randolph" <email@hidden>)
 >Re: Is there any overhead on hidden views? (From: "Greg Herlihy" <email@hidden>)

  • Prev by Date: Re: Is there any overhead on hidden views?
  • Next by Date: Custom scrollbar/Timeline view widge
  • Previous by thread: Re: Is there any overhead on hidden views?
  • Next by thread: Re: Is there any overhead on hidden views?
  • Index(es):
    • Date
    • Thread