Re: "exponent" action in NSTextView subclass (SOLVED)
Re: "exponent" action in NSTextView subclass (SOLVED)
- Subject: Re: "exponent" action in NSTextView subclass (SOLVED)
- From: Martin Wierschin <email@hidden>
- Date: Thu, 8 Mar 2007 18:22:15 -0800
I still don't quite understand what those "typing attributes" are all
about and what they add to ordinary attributes
Basically they are attributes that are associated with the caret (a
zero length selection) and not any characters in the text storage.
For instance, if the user chooses a bold font and has only a caret
then no characters in the NSTextStorage should be modified. Instead
the NSTextView tracks the change in the typing attributes. Then when
the user does some actual typing these typing attributes are applied
to the newly inserted characters.
For more see the second paragraph on this page:
http://developer.apple.com/documentation/Cocoa/Conceptual/TextUILayer/
Tasks/SetTextAttributes.html
~Martin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden