• 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: NSLayoutManager additional temporary attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLayoutManager additional temporary attributes


  • Subject: Re: NSLayoutManager additional temporary attributes
  • From: Martin Wierschin <email@hidden>
  • Date: Thu, 27 Jul 2006 00:37:29 -0700

NSLayoutManger's temporary attributes work great for me, but they are limited to attributes that don't effect the text layout such as foreground and background color. Does anyone know where can I plug into the text system so that I can make other attributes (such as font) act in this temporary fashion?

There's no place in NSLayoutManager that you can override to filter the attributes for the NSTextStorage in this way. What you're going to need to do is subclass NSTextStorage and have your own way of calculating attributes for the NSLayoutManager to pick up. See:


http://developer.apple.com/documentation/Cocoa/Conceptual/ TextStorageLayer/Tasks/Subclassing.html

HTH,

~Martin
_______________________________________________
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


References: 
 >NSLayoutManager additional temporary attributes (From: Jesse Grosjean <email@hidden>)

  • Prev by Date: Re: NSTextView, style, and weird Core Data issue
  • Next by Date: Show/Hide columns in NSTableView?
  • Previous by thread: NSLayoutManager additional temporary attributes
  • Next by thread: Getting bounding rect of NSAttributedString
  • Index(es):
    • Date
    • Thread