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 protected]>
> Subject: Re:Attributes set in NSTextStorage ignored/overridden
> (solved)
> To: COCOA <[email protected]>
> Message-ID: <[email protected]>
> 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 protected]
> 
> 



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to