• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextTab at the rightmost edge of view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTextTab at the rightmost edge of view
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: [Foo new] vs [[Foo alloc] init]:
  • Next by Date: FYI: IKImageBrowserView bug
  • Previous by thread: Re: Help with interface Builder 2.5.4
  • Next by thread: Re: NSTextTab at the rightmost edge of view
  • Index(es):
    • Date
    • Thread