• 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
clearing NSTextView text attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

clearing NSTextView text attributes


  • Subject: clearing NSTextView text attributes
  • From: Saratchandra Kongara <email@hidden>
  • Date: Wed, 27 Nov 2002 10:20:48 -0500

I am reusing a window with a NSTextView control for entering new data.
To clear the text each time the window is displayed for the new entry,
I am using [textView setString:@""]; textView is an outlet to the NSTextView control in the window.

But the font and color attributes of the previous entry are preserved, When I start typing the new entry it appears in the font and color of the previous entry. Is there a way to reset this to the default font and color.

Thanks.
Sarat
_______________________________________________
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: clearing NSTextView text attributes
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Paginating an NSTableView
  • Next by Date: Re: AddressBook, ABMultiValue, and indexForIdentifier
  • Previous by thread: Re: Paginating an NSTableView
  • Next by thread: Re: clearing NSTextView text attributes
  • Index(es):
    • Date
    • Thread