Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView binding with CoreData




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSTextView binding with CoreData (From: Nathan Gilmore <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.