Reputation: 31887
I'm new in Mac programming. The first thing I've noticed is that the (0, 0) coordinate in a NSView is the bottom-left corner.
I'm going to use a NSView as a canvas, to draw objects on it. My objects will be positioned from the top-left corner. I can convert Y coordinates using a geometrical transformation.
But the problem is: I'm not sure how to proceed when the view is resized. I don't want to calculate the layout every resize event, because calculating it takes between 150 and 250 ms.
So, to Mac experts:
Upvotes: 0
Views: 294
Reputation: 12782
Just implement - (void)isFlipped { return YES; }
In your NSView subclass.
Upvotes: 1