• 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
Re: How to set width of "tab" (\t) in NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to set width of "tab" (\t) in NSTextView?


  • Subject: Re: How to set width of "tab" (\t) in NSTextView?
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 24 Oct 2005 10:09:17 -0700


On Oct 22, 2005, at 8:26 AM, Andreas Mayer wrote:

Am 22.10.2005 um 15:39 Uhr schrieb Andrei Tchijov:


I did look through archives, but I guess I can not figure out proper "search words".


Try NSParagraphStyle.


To amplify that: NSParagraphStyle is used as the value for NSParagraphStyleAttributeName to set paragraph-level attributes (including tab stop positions) on a per-paragraph basis. NSTextView also has a defaultParagraphStyle that can be used to set the default values for these attributes for text that lacks NSParagraphStyleAttributeName. You can take a look at the source to TextEdit for an example of this.


Douglas Davidson

_______________________________________________
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


References: 
 >How to set width of "tab" (\t) in NSTextView? (From: Andrei Tchijov <email@hidden>)
 >Re: How to set width of "tab" (\t) in NSTextView? (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Resizing bezier objects.
  • Next by Date: Re: setFieldEditor, yes & no sort of
  • Previous by thread: Re: How to set width of "tab" (\t) in NSTextView?
  • Next by thread: How to change a Push Button's Color?
  • Index(es):
    • Date
    • Thread