Re: NSTextView binding with CoreData
Re: NSTextView binding with CoreData
- Subject: Re: NSTextView binding with CoreData
- From: mmalc crawford <email@hidden>
- Date: Tue, 31 Jul 2007 07:25:06 -0700
On Jul 31, 2007, at 5:13 AM, Michael Fey wrote:
While the NSTextView will not accept NSString data, it will accept
NSAttributedString data.
NSTerxtView does work with NSString objects -- use the 'value' binding
(see <http://developer.apple.com/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsText/NSTextView.html
>)...
we wrote a "StringToAttribStringTransformer" that is a subclass of
NSValueTransformer
...this is therefore unnecessary.
(The 'value' binding "is only available when the NSTextView is
configured to display using as a single font", but since you're
throwing away any formatting information in the transformation, this
shouldn't really matter.)
mmalc
_______________________________________________
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