• 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: Programmatically creating CoreData Entities - Source Code for Newbies?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically creating CoreData Entities - Source Code for Newbies?


  • Subject: Re: Programmatically creating CoreData Entities - Source Code for Newbies?
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 31 Mar 2006 09:17:44 -0800


On Mar 31, 2006, at 9:04 AM, Vince Ackerman wrote:

Amongst other things, I'm confused about which objects need NSControllers.


I see that mmalc has already responded to most of your questions with pointers to the doc.

	as far as this issue is concerned...


You should typically use a controller any time that you are connecting a view binding to a model object property. There are exceptions though. For example, you can bind a view property directly to model property provided that the view doesn't require support from the NSEditor and NSEditorRegistration protocols. Views that absolutely do require controllers are typically things like NSTextField, NSTextView, and other views that can have uncommitted edits in some sort of a sub unit (NSTableView and NSOutlineView can both have active edits in a cell for example)


So, there are cases where you don't absolutely have to have a controller, but using one will rarely hurt (I can't think of a situation off the top of my head where it would)


_______________________________________________ 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
References: 
 >CoreData app random crash on startup (From: Matt Neuburg <email@hidden>)
 >Programmatically creating CoreData Entities - Source Code for Newbies? (From: Vince Ackerman <email@hidden>)
 >Re: Programmatically creating CoreData Entities - Source Code for Newbies? (From: Vince Ackerman <email@hidden>)

  • Prev by Date: Re: Programmatically creating CoreData Entities - Source Code for Newbies?
  • Next by Date: [Core Data] Passing data from MOC1 to MOC2 without saving MOC1
  • Previous by thread: Re: Programmatically creating CoreData Entities - Source Code for Newbies?
  • Next by thread: Re: Programmatically creating CoreData Entities - Source Code for Newbies?
  • Index(es):
    • Date
    • Thread