• 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: View hierarchy, documentation, and origin location.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: View hierarchy, documentation, and origin location.


  • Subject: Re: View hierarchy, documentation, and origin location.
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 23 Sep 2013 10:36:31 -0700

> On Sep 23, 2013, at 9:09 AM, Peter Teeson <email@hidden> wrote:
>
> My questions:
> (0) Given the above documentation why is the matrix drawn at top left (indented of course)?

What’s _theMatrix’s frame? It could either have an origin that puts it at the top, or it could draw its content in its upper-left and have a size that fills the superview, or its superview could return YES from -isFlipped.

> The default location is stated to be lower left.

See -[NSView isFlipped].

>
> (1) Is the contentView's superView the screen?

No, it’s the window’s private NSThemeFrame, or nil if the window is borderless. Windows and screens are not views.

> And thus the contentView uses the screen's origin co-ordinates which are top left?

Flippedness does not cascade; every NSView’s bounds coordinate system is independent. If a view returns NO from -isFlipped, then drawing at (0,0) in that view’s bounds will always draw at the lower left of that view, regardless of whether any ancestors return YES from -isFlipped.

--Kyle Sluder

_______________________________________________

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: View hierarchy, documentation, and origin location.
      • From: Peter Teeson <email@hidden>
References: 
 >View hierarchy, documentation, and origin location. (From: Peter Teeson <email@hidden>)

  • Prev by Date: Re: View hierarchy, documentation, and origin location.
  • Next by Date: Deficiencies in UIKeyCommand
  • Previous by thread: Re: View hierarchy, documentation, and origin location.
  • Next by thread: Re: View hierarchy, documentation, and origin location.
  • Index(es):
    • Date
    • Thread