• 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: NSTableView, NSArrayController, NSManagedObjectContext
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView, NSArrayController, NSManagedObjectContext


  • Subject: Re: NSTableView, NSArrayController, NSManagedObjectContext
  • From: mmalc crawford <email@hidden>
  • Date: Tue, 1 Jan 2008 11:30:49 -0800


On Jan 1, 2008, at 11:22 AM, Ture Pålsson wrote:

Now I suddenly need do call methods in an NSController, meaning that I need
to have a reference (probably in the form of an IBOutlet) to this controller somewhere


Yes, that's perfectly reasonable.

Or if for some reason you really want to avoid that (and to reiterate, there's no need to do so, it's standard Cocoa architecture), you could create an NSArrayController subclass that registers for save notifications from the other managed object context and updates itself in response (depending on your application architecture, it may be that you'll need an outlet from the array controller to, say, the document object to get the other MOC).

mmalc

_______________________________________________

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


References: 
 >NSTableView, NSArrayController, NSManagedObjectContext (From: "Ture Pålsson" <email@hidden>)
 >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: mmalc crawford <email@hidden>)
 >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: "Ture Pålsson" <email@hidden>)
 >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: "I. Savant" <email@hidden>)
 >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: "Ture Pålsson" <email@hidden>)
 >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: "I. Savant" <email@hidden>)
 >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: "Ture Pålsson" <email@hidden>)
 >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: mmalc crawford <email@hidden>)
 >Re: NSTableView, NSArrayController, NSManagedObjectContext (From: "Ture Pålsson" <email@hidden>)

  • Prev by Date: Re: NSTableView, NSArrayController, NSManagedObjectContext
  • Next by Date: Re: cocoa bindings NSTableColumn to @allKeys?
  • Previous by thread: Re: NSTableView, NSArrayController, NSManagedObjectContext
  • Next by thread: Re: NSTableView, NSArrayController, NSManagedObjectContext
  • Index(es):
    • Date
    • Thread