NSLayoutManager additional temporary attributes
NSLayoutManager additional temporary attributes
- Subject: NSLayoutManager additional temporary attributes
- From: Jesse Grosjean <email@hidden>
- Date: Mon, 24 Jul 2006 22:47:57 -0400
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?
It seems like there must be one place where the NSLayoutManager asks
the NSTextStorage for attributes at an index, but I can't seem to
find that place. I'd like to subclass NSLayoutManager and be able to
make modifications to the attributes at a particular index of the
NSTextStorage so that the layout manager will lay the text out with
my attributes, but so that the underlying NSTextStorage won't be
changed.
Can anyone recommend the best way to approach this?
Thanks,
Jesse
_______________________________________________
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