Re: Drawing from lower left, why?
Re: Drawing from lower left, why?
- Subject: Re: Drawing from lower left, why?
- From: "Dr. Rolf Jansen" <email@hidden>
- Date: Fri, 15 Jun 2007 20:00:45 -0300
Hi,
Did you ever heard of the Cartesian Coordinate system, if not, you
might want to review:
<http://en.wikipedia.org/wiki/Cartesian_coordinate_system>
That is the natural and standard way of drawing things since the 17th
century.
Best regards
Dr. Rolf Jansen
Am 15.06.2007 um 19:34 schrieb Ken Tozier:
Hi
Since February, I've spent probably a solid month just trying to
make a custom view look the way I want. Because of Apple's draw
from the lower left silliness, this view has been, by a very wide
margin, hardest part of my whole application.
Apparently, the only way to draw from the upper left is to flip the
view. If you flip a view, you have to invert all calculations (and
think upside down) . If you use any GUI widgets, you have to
subclass them and flip them too. If you add transforms to the mix,
that affects subview spacing and text size calculation. if you
resize the window, and want the subviews near the top to look like
they haven't moved, you have to completely recalculate everything
in the view. If there are auto-hidden scrollbars, you have to query
the view on each draw and completely recalculate everything so the
scrollbar show/hide doesn't shift everything over to the left. Add
to all this the headache of adding tracking rectangles and
highlighting and the whole thing becomes a freaking nightmare.
Why did Apple subject us to this bass-ackwards way of drawing? The
natural way to read information (at least 90+ percent of the time)
is from top to bottom I just don't understand their logic and it
makes drawing a living hell.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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