• 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: How to programmatically create an NSObjectController in Entity mode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to programmatically create an NSObjectController in Entity mode?


  • Subject: Re: How to programmatically create an NSObjectController in Entity mode?
  • From: "I. Savant" <email@hidden>
  • Date: Tue, 29 Apr 2008 13:19:36 -0400

>  What is the correct way to programmatically creates these things?

  I believe you've gotten it all right, but the document says of the
'automatically prepares content' flag:

"If flag is YES and a managed object context is set, the initial
content is fetched from the managed object context using the current
fetch predicate."

  I assume if there is no instance in your store already, none will be
found when the fetch request executes. I think you'll need to create a
singleton ahead of time (if none exists at launch or document-open)
for this to work but I may very well be wrong ... ;-)

--
I.S.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >How to programmatically create an NSObjectController in Entity mode? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: How to programmatically create an NSObjectController in Entity mode?
  • Next by Date: Re: How is "Apple + Ctrl + D" implemented?
  • Previous by thread: How to programmatically create an NSObjectController in Entity mode?
  • Next by thread: transient attributes of NSManagedObject reflected in isUpdated
  • Index(es):
    • Date
    • Thread