Skip navigation.
 
mlRe: clearing NSTextView text attributes
FROM : Douglas Davidson
DATE : Wed Nov 27 18:03:30 2002

On Wednesday, November 27, 2002, at 07:20  AM, Saratchandra Kongara
wrote:

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


What you are seeing is the effect of the typing attributes.  You can
set these explicitly yourself if you so desire.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlclearing NSTextView text attributes Saratchandra Konga… Nov 27, 16:20
mlRe: clearing NSTextView text attributes Saratchandra Konga… Nov 27, 17:46
mlRe: clearing NSTextView text attributes Douglas Davidson Nov 27, 18:03