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
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 mails | Author | Date |
|---|---|---|
| Yann Bizeul | Apr 28, 17:12 | |
| mmalc crawford | Apr 28, 17:29 | |
| mmalc crawford | Apr 28, 17:48 | |
| Yann Bizeul | Apr 28, 18:42 | |
| Shawn Erickson | Apr 28, 19:06 | |
| Yann Bizeul | Apr 30, 00:04 | |
| mmalc crawford | Apr 30, 00:28 | |
| Yann Bizeul | Apr 30, 00:50 |






Cocoa mail archive

