NSTextTab at the rightmost edge of view
NSTextTab at the rightmost edge of view
- Subject: NSTextTab at the rightmost edge of view
- From: Daniel Jalkut <email@hidden>
- Date: Fri, 15 Feb 2008 19:22:45 -0500
I'm trying to programatically set a right-aligned text tab at the
rightmost edge of my text view.
I've tried to set the tab stop location in terms of the width of the
text view, and in terms of the width of the text container, but
setting such a tab stop at this extreme offset seems to have the
effect of causing the tabbed text to disappear.
It was a guess to assume that the units were in pixels/points, but it
seems right. I know it's *close* to the right units, because when I
subtract 10.0 from the width, regardless of what it is, I get roughly
the desired behavior (text right-aligned to the edge of the view).
How can I find out the maximum tab location for a given textview/
container, that will actually work as expected? The "minus 10.0" trick
works for now, but I'm a little wary.
Thanks for your help,
Daniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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