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 <dalelmil...@comcast.net> > Subject: Re:Attributes set in NSTextStorage ignored/overridden > (solved) > To: COCOA <cocoa-dev@lists.apple.com> > Message-ID: <8643d1f9-ebc2-4d29-b8ac-20becfad8...@comcast.net> > 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 > dalelmil...@comcast.net > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com