Re:Attributes set in NSTextStorage ignored/overridden
Re:Attributes set in NSTextStorage ignored/overridden
- Subject: Re:Attributes set in NSTextStorage ignored/overridden
- From: Gordon Apple <email@hidden>
- Date: Mon, 29 Mar 2010 15:13:09 -0500
- Thread-topic: Attributes set in NSTextStorage ignored/overridden
Be aware that it your textView is bound to an NSTextStorage (or
NSAttributedString) elsewhere, that programmatic changes will not be stored
unless someone does a manual edit afterwards. Programmatic changes do not
trigger a KVO to make it update, such as what happens with manual edits. I
haven't found a workaround for this yet. I recently filed a bug report on
it.
> Message: 2
> Date: Mon, 29 Mar 2010 10:40:44 -0700
> From: Dale Miller <email@hidden>
> Subject: Re:Attributes set in NSTextStorage ignored/overridden
> (solved)
> To: COCOA <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
> Solved by Gideon King (Thank you!).
> One of my rookie tricks invoked by working past my bedtime. I had the
> keys and objects reversed in the attribute dictionaries creations.
> Dale Miller
> email@hidden
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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