Skip navigation.
 
mlRe: NSTextView's "data" binding
FROM : mmalc crawford
DATE : Sat Apr 28 17:48:25 2007

On Apr 28, 2007, at 8:29 AM, mmalc crawford wrote:

> Moreover, you should almost certainly be binding to an intermediary 
> controller (an instance of a subclass of NSController) and not 
> directly to the managed object.
>

Thinking about this a little more, assuming

> [self bind:@"data" toObject:textView withKeyPath:@"data" options:nil];


is in a method of an NSManagedObject subclass, you should also review:

<http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/chapter_5_section_4.html
>

There should be no reason for a model object to have a text view as an 
instance variable.

mmalc

Related mailsAuthorDate
mlNSTextView's "data" binding Yann Bizeul Apr 28, 17:12
mlRe: NSTextView's "data" binding mmalc crawford Apr 28, 17:29
mlRe: NSTextView's "data" binding mmalc crawford Apr 28, 17:48
mlRe: NSTextView's "data" binding Yann Bizeul Apr 28, 18:42
mlRe: NSTextView's "data" binding Shawn Erickson Apr 28, 19:06
mlRe: NSTextView's "data" binding Yann Bizeul Apr 30, 00:04
mlRe: NSTextView's "data" binding mmalc crawford Apr 30, 00:28
mlRe: NSTextView's "data" binding Yann Bizeul Apr 30, 00:50