• 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
How to hook up controllers to a hand generated OM?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to hook up controllers to a hand generated OM?


  • Subject: How to hook up controllers to a hand generated OM?
  • From: Joseph Jones <email@hidden>
  • Date: Mon, 20 Jun 2005 23:13:29 -0700

Hi all,

I am generating a Core Data model by hand and instantiating entities in the OM based on information in a loaded file. I can't use IB to create controllers/bindings since the OM is not known before hand. I have the OM generated and the Graph filled out. What I need now is a way to hook up controllers to the graph so that I can bind my UI to the controllers and leverage all the great work there.

Here is a sample of what I am looking at:

Given this simple OM:

        Foo<---->>Bar


I need to create a controller to manage the One-Many relationship. I believe I Need an NSArrayController but I am unsure how to hook the controller to the model so that it can managed the Foo-Bar relationship (Adding Bars, Removing Bars, etc.).


Thanx,
joe

_______________________________________________
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


  • Follow-Ups:
    • Re: How to hook up controllers to a hand generated OM?
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: Cocoa Memory Leaks
  • Next by Date: Re: Core Data, Bindings, and default relationships
  • Previous by thread: Re: Core Data, Bindings, and default relationships
  • Next by thread: Re: How to hook up controllers to a hand generated OM?
  • Index(es):
    • Date
    • Thread