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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to