• 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
Re: Changing the default color in an NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the default color in an NSTextView?


  • Subject: Re: Changing the default color in an NSTextView?
  • From: email@hidden
  • Date: Sat, 23 Feb 2002 12:42:30 -0800

Adding the colored string leaves the
textView in a state where the next thing the user types will also be blue.
Apparently NSTextView looks back a character to infer the attributes of the
next character typed. I can see how you might want that in most
applications. I don9t want it, however, and I can't figure out how to turn
it off. I'm currently adding a space with default attributes but that's an
ugly hack.

See NSTextView's doc, in the section where it talks about typing attributes. The -setTypingAttributes: method is, I believe, what you want.

Ben Haller
Stick Software
_______________________________________________
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.

  • Follow-Ups:
    • Re: Changing the default color in an NSTextView?
      • From: Chris Gehlker <email@hidden>
  • Prev by Date: Re: forcing custom behavior
  • Next by Date: Re: Help with Help
  • Previous by thread: Changing the default color in an NSTextView?
  • Next by thread: Re: Changing the default color in an NSTextView?
  • Index(es):
    • Date
    • Thread