• 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
NSTextView's "data" binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView's "data" binding


  • Subject: NSTextView's "data" binding
  • From: Yann Bizeul <email@hidden>
  • Date: Sat, 28 Apr 2007 17:12:14 +0200

Hello the list.

I have to create a NSTextView by hand (programmatically), it is not embedded in a NSScrollView, and its superview is a NSView's subclass handling moving and sizing with the mouse.

The problem is I want to bind "data" of this NSTextView to my NSManagedObject.

So what do I do ? :

When creating my NSTextView :

[...]
[textView setRichText:YES];
[self bind:@"data" toObject:textView withKeyPath:@"data" options:nil];
[...]

I have a NSData *data ivar in my object.

I get that in log when the binding code is executed :

2007-04-28 17:08:03.225 KineSlide[10879] [<NSTextView 0x15e3d210> valueForUndefinedKey:]: this class is not key value coding-compliant for the key data.

So obviously there is either something wrong in the doc or in my code.

Did someone already make this work ?

Thanks

Yann Bizeul • yann at tynsoe.org
Cocoa Developer

Tynsoe Projects
BuddyPop • GeekTool • SSH Tunnel Manager • ...
http://projects.tynsoe.org/


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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's "data" binding
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: Compiler Warnings
  • Next by Date: Re: NSTextView's "data" binding
  • Previous by thread: Re: Rotating an NSView before printing
  • Next by thread: Re: NSTextView's "data" binding
  • Index(es):
    • Date
    • Thread