• 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: How to get max size of view according to constraints?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get max size of view according to constraints?


  • Subject: Re: How to get max size of view according to constraints?
  • From: Per Bull Holmen <email@hidden>
  • Date: Thu, 22 Mar 2012 01:35:53 +0100

Den 19:26 21. mars 2012 skrev Charles Srstka
<email@hidden> følgende:

> It seems to be the same in testing; however, is it guaranteed to be that way
> anywhere in the documentation? The fact that NSClipView actually has a
> separate property named -documentVisibleRect seems to imply that it isn’t.

The -documentVisibleRect property gives the visible portion of the
document in the document view's OWN coordinate system. The main
difference in most cases will be the origin, which will be different
from the frame of the clip view because of scrolling. If the document
view's bounds are set in such a way that the drawing is magnified,
that will also affect the size of -documentVisibleRect, because this
rect is given in the document view's own coordinate system, while a
view's frame is given in the super view's coordinate system. The whole
purpose of the clip view is to clip the document view to show only the
visible portion. Therefore, its size will always be equal to the
visible prtion of the document view. It serves no purpose outside that
area. It would be a strange decision if Apple should ever change that
in the future, to let it serve as an invisible layer above other
views, in addition to clipping the document view? I'd consider that
bizarre, but I don't know if it says so explicitly anywhere in the
docs.

Per

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: How to get max size of view according to constraints?
      • From: Per Bull Holmen <email@hidden>
References: 
 >How to get max size of view according to constraints? (From: Charles Srstka <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Richard Somers <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Charles Srstka <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Peter Ammon <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Charles Srstka <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Per Bull Holmen <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Charles Srstka <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Per Bull Holmen <email@hidden>)
 >Re: How to get max size of view according to constraints? (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: makeObjectsPerformSelector on a sub class
  • Next by Date: NSData, CFData maximum length question
  • Previous by thread: Re: How to get max size of view according to constraints?
  • Next by thread: Re: How to get max size of view according to constraints?
  • Index(es):
    • Date
    • Thread