Re: View hierarchy, documentation, and origin location.
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