• 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: Peter Teeson <email@hidden>
  • Date: Mon, 23 Sep 2013 21:07:45 -0400

On 2013-09-23, at 1:08 PM, Gary L. Wade wrote:
> What I believe you're wanting to know is that cells in a matrix
> have their row-column coordinates start from the top left,
> so the cell at (0,0) is in the top left of its enclosure matrix and the cell
> at row 1 column 0 is below it.

Thanks but not really - that is what's happening but not my question.
The docs say
"By default, the graphics environment origin (0.0,0.0) is located in the lower left,…." page 11
"The window instance maintains a reference to a single top-level view instance, call the content view.
"The content view acts as the root of the visible view hierarchy in a window." Page 17

If you look at  the code I posted along with my comments you will see that
I get the windows content view frame, inset it and use that as the matrix frame.
(The matrix is also a View per NSMatrix docn)

It's values happen to be 0, 0, 500, 500 and, based on the documentation I quoted,
I anticipated that it would draw from the lower left of the content view.
It doesn't! It draws from the top left of the content view (which is a View per NSWindow docn)

Why is that? What am I not understanding?
Why does the docn say one thing but the Cocoa code, (i.e. not my code) do something different?






_______________________________________________

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: Ken Thomases <email@hidden>
References: 
 >View hierarchy, documentation, and origin location. (From: Peter Teeson <email@hidden>)
 >Re: View hierarchy, documentation, and origin location. (From: "Gary L. Wade" <email@hidden>)

  • Prev by Date: Re: outlets in objects loaded from nibs
  • Next by Date: Re: View hierarchy, documentation, and origin location.
  • Previous by thread: Re: View hierarchy, documentation, and origin location.
  • Next by thread: Re: View hierarchy, documentation, and origin location.
  • Index(es):
    • Date
    • Thread