• 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: "exponent" action in NSTextView subclass (SOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: "exponent" action in NSTextView subclass (SOLVED) (From: email@hidden)

  • Prev by Date: Re: alloc init thread safe?
  • Next by Date: Re: alloc init thread safe?
  • Previous by thread: Re: "exponent" action in NSTextView subclass (SOLVED)
  • Next by thread: Command+Dragging NSStatusItem in NSStatusBar
  • Index(es):
    • Date
    • Thread