Re: NSLayoutManager additional temporary attributes
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