Re: How does NSTextTab really work?
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.