Re: Core Data: Single entity in NSDocument?
Re: Core Data: Single entity in NSDocument?
- Subject: Re: Core Data: Single entity in NSDocument?
- From: "I. Savant" <email@hidden>
- Date: Fri, 7 Jul 2006 08:31:45 -0400
Michael:
If I understand you correctly, you just want a single
***instance*** of your entity "Ent1" for your document. If this is
the case, just create an initial instance when your document is
created and use NSObjectController (not NSArrayController) just as
you surmised. It's that easy. :-)
--
I.S.
On Jul 6, 2006, at 12:26 PM, Michael Anckaert wrote:
Hello all,
I have a Core Data application with a NSDocument structure. I want
each NSDocument to have only 1 entity, not an array of entities.
If I create an entity called Ent1, I can only display a list of
entities in my document, using an array controller and the
selection control key.
How can I only have 1 entity in my document? So instead of an array
controller, I'd need an object controller or something.
Is this possible with Core Data?
I know my explanation is a bit obscure, but it's hard to explain :)
Kind regards,
Michael Anckaert _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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