• 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 does NSTextTab really work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does NSTextTab really work?


  • Subject: Re: How does NSTextTab really work?
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 18 Apr 2003 15:47:32 -0700

On Friday, April 18, 2003, at 2:31 PM, Joe Chan wrote:

I've been going through the TextEdit sample code, and I'm a little baffled by NSTextTab. When it's in rich text mode, the tabs behave exactly the way I understand it: the tab stop units are points, and regardless of the font size, 36pt tab stop doesn't change. However, in plain text mode, the tabstops seem to scale with font size. When I went into the debugger and look at the tab stop array of the default paragraph style, it shows the default 28pt tabs. So what controls this behavior?

In this case, code in the TextEdit application is carefully going through and setting tab stops for the paragraph style based on the font size. The tab stop units are points, independent of the font size, and the default paragraph style is fixed, but TextEdit isn't using the default paragraph style. Look a bit further in the code and you'll see it.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >How does NSTextTab really work? (From: Joe Chan <email@hidden>)

  • Prev by Date: Re: Example of DO without nil as Host?
  • Next by Date: Implanting combo box in table view
  • Previous by thread: How does NSTextTab really work?
  • Next by thread: Example of DO without nil as Host?
  • Index(es):
    • Date
    • Thread