Re: Just 1 entity in a Core Data document?
Re: Just 1 entity in a Core Data document?
- Subject: Re: Just 1 entity in a Core Data document?
- From: "I. Savant" <email@hidden>
- Date: Mon, 10 Jul 2006 10:07:31 -0400
Michael:
I'm not really sure what you're asking - you may need to find
another way of stating your problem and your goals.
At a guess, you're asking for an NSObjectController instead of an
NSArrayController. If you want only one instance of an entity, only
create one instance of the entity. Nothing says you have to create or
allow creation of more than one instance of anything.
If all you're missing is that there is an NSObjectController (that
handles one object versus an NSArrayController handling many), then
you need to give the documentation on Cocoa Bindings (which != Core
Data) a thorough read / study. I believe that will help you
understand (and separate) the concepts of Cocoa Bindings and Core
Data in the key areas you're missing.
--
I.S.
On Jul 10, 2006, at 8:52 AM, Michael Anckaert wrote:
Hello all,
I'd like to know if it's possible to add a custom class to your
Core Data files?
Let's say you have a Core Data model that has an entity. The way I
do it now, I always have multiple entities in a document.
But what if I would only want 1 entity in a document?
Is it possible to save your custom class to your Core Data model?
What I have:
Core Data
========
Entity1
Entity2
Enttity3
...
What I want:
Core Data
========
Entity1
In my Gui, I can only use a NSArrayController to access my
entities, so I always use more than 1 entity
(through the selection controller key in my bindings). How can I
have only 1 entity in my document?
Basically, a NSArrayController without a controller key, because it
only has 1 entity :)
Met vriendelijke groeten,
With 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