Re: Value Binding to NSTextView subclass
Re: Value Binding to NSTextView subclass
- Subject: Re: Value Binding to NSTextView subclass
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 30 Nov 2004 19:14:09 -0800
On Nov 30, 2004, at 12:03 AM, mmalcolm crawford wrote:
Binding the view back to my model. I'm manually binding [the custom
subclass of NSTextView] with: [myTextView bind:@"value"
toObject:documentController withKeyPath:@"selection.textValue"
options:nil] [...]
There shouldn't be a problem with that. Are you overriding the
bind:... method? What is the actual error message (in particular,
what class are you being told is not KVC compliant)? It sounds like
the problem is with the bound-to object, not the view...
It turns out the problem was that the text view had been set back to
rich text (see "NSTextView":
<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
mmalc
_______________________________________________
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