Populate NSTextView from NSPopupButton
Populate NSTextView from NSPopupButton
- Subject: Populate NSTextView from NSPopupButton
- From: Tom Quest <email@hidden>
- Date: Thu, 14 Sep 2006 11:59:27 +0200
Hi all,
I try to populate a NStextView by selecting a value from a
popupButton. My Bindings for the NSPopupButton are:
content
Bind to: MyArrayController
Controller key: arrangedObjects
key Path: empty
content values
Bind to: MyArrayController
Controller key: arrangedObjects
key Path: name
The NSTextView is bound to:
data
Bind to: MyArrayController
Controller key: selection
key Path: text
MyArrayController is bound to a Core Date Object with the attributes
'name' (to be shown in the popup) and 'text'(to be shown in the
textview).
As long as I don't bind the TextView the PopupButton shows a list I
can select from. When I bind the TextView I get the following error:
"Cannot create NSData from object [...] of class NSCFString". The
[...] is the value that ist stored in Core Data for the 'text'
attribute.
What am I doing wrong ? I've been searching this list for some time
now but couldn't find anything related. I would be glad if at least
someone could point me to search termes that show some related stuff.
Thanks
Tom
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden