Drawing from lower left, why?
Drawing from lower left, why?
- Subject: Drawing from lower left, why?
- From: Ken Tozier <email@hidden>
- Date: Fri, 15 Jun 2007 18:34:53 -0400
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