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

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


  • Follow-Ups:
    • Re: NSTextView's "data" binding
      • From: Yann Bizeul <email@hidden>
References: 
 >NSTextView's "data" binding (From: Yann Bizeul <email@hidden>)
 >Re: NSTextView's "data" binding (From: mmalc crawford <email@hidden>)

  • Prev by Date: Re: NSTextView's "data" binding
  • Next by Date: NSScrollView setDocumentView compile error
  • Previous by thread: Re: NSTextView's "data" binding
  • Next by thread: Re: NSTextView's "data" binding
  • Index(es):
    • Date
    • Thread