I'm having some difficulties with an NSScrollView (such as the ruler
starts at the bottom of the view) not to mention that I have to
convert all my coordinates.
I can't find anything in the documentation other then an anccessor
that you are supposed to overwrite.
Is there a relatively simple way to do this as it would save me from
lots of code and save me some hairs :-).
First, I should state that I'm not an expert in this stuff. Second, I
should state that I *think* I know what you're asking, but I'm not
entirely sure I do. What I think you're asking is, "how do I make my
scroll view place (0.0, 0,0) at the top-left corner instead of at the
bottom-left corner?" If this is correct, then I believe that all you
have to do is handle -isFlipped in your NSScrollView subclass, as
I think you also need to make sure you translate points and rects
correctly, such as something like this:
I tested this approach out, although with a simple NSView subclass
rather than an NSScrollView. If anyone on the list would care to
confirm or criticize the correctness/appropriateness of any of this,
please do so!
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden