• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Populate NSTextView from NSPopupButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Populate NSTextView from NSPopupButton
      • From: Felix Franz <email@hidden>
  • Prev by Date: Re: DO deadlock problem
  • Next by Date: Custom NSAttachmentCell (save/copy/paste)
  • Previous by thread: Re: DO deadlock problem
  • Next by thread: Re: Populate NSTextView from NSPopupButton
  • Index(es):
    • Date
    • Thread