• 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: Core Data: Single entity in NSDocument?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Core Data: Single entity in NSDocument? (From: Michael Anckaert <email@hidden>)

  • Prev by Date: Re: more on two-way bindings and one-way bindings
  • Next by Date: Re: initiating a drag help
  • Previous by thread: Re: Core Data: Single entity in NSDocument?
  • Next by thread: Re: Core Data: Single entity in NSDocument?
  • Index(es):
    • Date
    • Thread