Re: Saving ruler markers to defaults
Re: Saving ruler markers to defaults
- Subject: Re: Saving ruler markers to defaults
- From: Douglas Davidson <email@hidden>
- Date: Mon, 19 Aug 2002 14:01:45 -0700
On Monday, August 19, 2002, at 01:39 PM, Jeremy Dronfield wrote:
Well, I'm fine with archiving, if only I knew how get the paragraph
style in the first place. Sorry to be a pest about this, but I've been
through every attributed string, text, layout and view document I can
think of, and nowhere can I find a method which returns the paragraph
style of a piece of text. How do you do it?
It's the value of the NSParagraphStyleAttributeName attribute on an
attributed string--in particular, if you have an NSTextView, the
relevant attributed string is the text view's textStorage. If the
value of the attribute is nil, that means the default paragraph style
is in effect.
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.