Re: NSTextView binding with CoreData
Re: NSTextView binding with CoreData
- Subject: Re: NSTextView binding with CoreData
- From: mmalc crawford <email@hidden>
- Date: Mon, 30 Jul 2007 14:37:28 -0700
On Jul 30, 2007, at 2:24 PM, Nathan Gilmore wrote:
The binding for the NSTextView looks like this:
data
Bind To: Notes (NSArrayController)
Controller Key: Selection
Model Key Path: body
However I am getting this error:
2007-07-30 17:07:13.907 xNote4[3928] Unacceptable type of value for
attribute: property = "body"; desired type = NSString; given type =
NSConcreteMutableData;
Sometimes looking carefully at the error message is useful. Exactly
as the error message states, you're not sending a string.
See <http://developer.apple.com/documentation/Cocoa/Reference/CocoaBindingsRef/BindingsText/NSTextView.html
>L
Contrast 'data' and 'value' bindings.
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