• 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
Trouble making attributes stick
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: sscanf replacement
  • Next by Date: Re: Help Loading Auxiliary Nibs files
  • Previous by thread: Re: Pop-Up Tabs and the Quest for a File Viewer
  • Next by thread: Tiff conversion
  • Index(es):
    • Date
    • Thread