On Feb 19, 2010, at 9:03 AM, [email protected] wrote: > I've tried calling my updateMyTextViewTextAttributes call when myTextView has > the new myFont set. That doesn't change a thing.
With updateMyTextViewTextAttributes as described, it will set the paragraph style for new text but won't change the paragraph style for existing text. What you would want to do would be to apply the new paragraph style to the existing text, by setting it as the value for NSParagraphStyleAttributeName on the text storage. To make this work well with the text view, you would probably want to surround this with calls to shouldChange/didChange methods--take a look at some of the samples for code examples of this sort of thing. Douglas Davidson _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
