Trouble making attributes stick
Trouble making attributes stick
- Subject: Trouble making attributes stick
- From: Christian Mike <email@hidden>
- Date: Wed, 1 Aug 2001 15:46:04 -0500
I have an NSTextView (NSScrollView actually) where a user will be entering
text. I am trying to set up a new NSParagraphStyle for that view. I find
that if I programmatically enter some text into the view and then use
NSParagraphStyle addAttribute:value:range, any further text that the user
manually enters into the view picks up the new style, which is what I want.
However, if I later programmatically append some new text to the end of the
view using NSTextView insertText:, that text reverts back to the old default
paragraph style.
I guess where I am headed with this is how do I make a new default paragraph
style (attribute?) for a text view that will stick regardless how the text
gets placed into the view?
Thanks.
Michael Christian
Thomson multimedia Inc.