Re: How to programmatically create an NSObjectController in Entity mode?
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