• 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
Re: NSTextView binding with CoreData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTextView binding with CoreData
      • From: Michael Fey <email@hidden>
References: 
 >NSTextView binding with CoreData (From: Nathan Gilmore <email@hidden>)

  • Prev by Date: Re: NSTextView binding with CoreData
  • Next by Date: Re: NSColorWell, bindings, and multiple selection
  • Previous by thread: Re: NSTextView binding with CoreData
  • Next by thread: Re: NSTextView binding with CoreData
  • Index(es):
    • Date
    • Thread