Text Containers in NSView
Text Containers in NSView
- Subject: Text Containers in NSView
- From: Gordon Apple <email@hidden>
- Date: Mon, 05 Feb 2007 14:42:55 -0600
I've already read a bunch of archives on flipped text. I notice that
Sketch cops out by using a flipped coordinate system. The issue is drawing
text inside a draw object. I have a few questions:
1. For drawing environments, are most apps using flipped or unflipped
coordinate views in OSX?
2. If using a unflipped NSView, is it simply a matter of flipping the
context (and proper positioning) when doing text drawing?
3. When computing a text layout using a NSTextContainer, it looks like I
will need to flip both the context and invert (i.e., transform) the Bezier
path text container using transformUsingAffineTransform?
4. I assume I'll have to also use the flipped Bezier container when editing
test in a temporary floating view.
5. Is there a more reasonable way to do this?
_______________________________________________
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