When do I have to update the typing attributes?
When do I have to update the typing attributes?
- Subject: When do I have to update the typing attributes?
- From: Jim Correia <email@hidden>
- Date: Tue, 3 Oct 2006 13:04:46 -0400
The documentation for -[NSTextView setTypingAttributes:] says:
Typing attributes are reset automatically whenever the selection
changes. If you add any user actions that change text attributes,
you should use this method to apply those attributes to a
zero-length selection.
Is it unnecessary to change the typing attributes when there is a non-
zero length selection? (The reason I ask is that it appears the -
changeFont: action modifies the text storage and changes the typing
attributes for a non-zero-length selection.)
Thanks,
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden