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

How does NSTextTab really work?


  • Subject: How does NSTextTab really work?
  • From: Joe Chan <email@hidden>
  • Date: Fri, 18 Apr 2003 17:31:33 -0400

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?

--
Joe Chan
Sun Microsystems, Inc.
Burlington, MA
Tel: (781) 442-0809
_______________________________________________
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.

  • Follow-Ups:
    • Re: How does NSTextTab really work?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Sending event to another application
  • Next by Date: Example of DO without nil as Host?
  • Previous by thread: Sending event to another application
  • Next by thread: Re: How does NSTextTab really work?
  • Index(es):
    • Date
    • Thread