• 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: Tue, 24 Sep 2013 21:05:02 -0400

As a final experiment, in my Matrix class I overrode initWithFrame……
and as the first and only line of the override had this:
BOOL f = [super isFlipped];

Lo and behold it returned YES which is definitely not the default.
I stopped the execution.

So from this I conclude that NSMatrix IS flipping the coordinates
probably because of the zero origin indexing of the cells.

Of course with the help from the comments here and 20/20 hindsight
I should have done this first.

It would be nice if the documentation for NSMatrix mentioned that in the Overview.
For example "NSMatrix uses flipped coordinates" would have saved everyone
from my noise.

But thanks anyway because now I do have a deeper understanding.
We learn from our mistakes.

Peter
_______________________________________________

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>
  • Prev by Date: Re: iOS7 Controls
  • Next by Date: UIPageViewController page index woes
  • Previous by thread: Re: View hierarchy, documentation, and origin location.
  • Next by thread: Re: View hierarchy, documentation, and origin location.
  • Index(es):
    • Date
    • Thread