• 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: Chris Gehlker <email@hidden>
  • Date: Sat, 23 Feb 2002 13:57:20 -0700

On 2/23/02 1:42 PM, "email@hidden" <email@hidden> wrote:

>> 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.
>

Perfect Ben. I don't know how I missed that!

--
Some people say Windows users have an inferiority complex.
That's not true. It's not a complex.
_______________________________________________
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.

References: 
 >Re: Changing the default color in an NSTextView? (From: email@hidden)

  • Prev by Date: Re: Help with Help
  • Next by Date: Re: number formatting
  • Previous by thread: Re: Changing the default color in an NSTextView?
  • Next by thread: Getting selected items in a matrix
  • Index(es):
    • Date
    • Thread