NSTextView binding with CoreData
NSTextView binding with CoreData
- Subject: NSTextView binding with CoreData
- From: Nathan Gilmore <email@hidden>
- Date: Mon, 30 Jul 2007 17:24:11 -0400
I am having trouble binding a NSTextView to a NSArrayController in my
small Core Data application. I have an entity called Note. It has
the following two attributes:
title - String
body - String
The user interface just has a table with one column, a NSTextView,
and two buttons for adding and deleting rows. This column is bound
to title and works fine. The add and delete buttons also are
connected to the NSArrayController and works fine.
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; value = <7b5c7274 66315c6d 61635c61 6e736963
70673130 3030305c 636f636f 61727466 3832345c 636f636f 61737562
72746634 32300a7b 5c666f6e 7474626c 5c66305c 66737769 73735c66
63686172 73657437 37204865 6c766574 6963613b 7d0a7b5c 636f6c6f
7274626c 3b5c7265 64323535 5c677265 656e3235 355c626c 75653235
353b7d0a 5c706172 645c7478 3536305c 74783131 32305c74 78313638
305c7478 32323430 5c747832 3830305c 74783333 36305c74 78333932
305c7478 34343830 5c747835 3034305c 74783536 30305c74 78363136
305c7478 36373230 5c716c5c 716e6174 7572616c 5c706172 6469726e
61747572 616c0a0a 5c66305c 66733234 205c6366 30206865 795c0a7d >.
Thank you very much for any help,
Nathan
_______________________________________________
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