Re: NSTextView's "data" binding
Re: NSTextView's "data" binding
- Subject: Re: NSTextView's "data" binding
- From: mmalc crawford <email@hidden>
- Date: Sat, 28 Apr 2007 08:48:25 -0700
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
_______________________________________________
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