• 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 and multiple NIBs: how to share the managedObjectContext?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data and multiple NIBs: how to share the managedObjectContext?


  • Subject: Re: Core Data and multiple NIBs: how to share the managedObjectContext?
  • From: mmalcolm crawford <email@hidden>
  • Date: Fri, 12 Aug 2005 23:19:48 -0700


On Aug 12, 2005, at 8:12 AM, zeno wrote:

On 8/12/05, mmalcolm crawford <email@hidden> wrote:
How have you set up the bindings?
As I wrote in the previous emails:
The textfield in Details.nib,
- Bind to: "Items"
- ControllerKey: "selection"
- ModelKeyPath: "title"
The Items array controller in Details.nib (managedObjectContext parameter),
- Bind to: "File's Owner (MainController)"
- ModelKeyPath: "managedObjectContext"
and MainController implements:
- (NSManagedObjectContext *)managedObjectContext
{
return [[NSApp delegate] managedObjectContext];
}


You haven't said how you've set up the bindings for the table view. At a *guess* you have set a 'content' and/or 'sortDescriptors' binding for the table view itself, but not 'selectionIndexes'. If this is the case, then you need the latter as well (typically bound to [Items].selectionIndexes).

btw, if only you could come here in switzerland and give to our
university the same great course you're giving at Stanford.... (I'm
afraid students here we'll never see a Cocoa course...that's too bad)
;-)

I did give an OPENSTEP course in Lucerne a few years ago...

mmalc

_______________________________________________
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:
    • CoreData to-many relationship, and "first row selected" issue
      • From: zeno <email@hidden>
    • Re: Core Data and multiple NIBs: how to share the managedObjectContext?
      • From: zeno <email@hidden>
References: 
 >Core Data and multiple NIBs: how to share the managedObjectContext? (From: Zeno Crivelli <email@hidden>)
 >Re: Core Data and multiple NIBs: how to share the managedObjectContext? (From: zeno <email@hidden>)
 >Re: Core Data and multiple NIBs: how to share the managedObjectContext? (From: mmalcolm crawford <email@hidden>)
 >Re: Core Data and multiple NIBs: how to share the managedObjectContext? (From: zeno <email@hidden>)

  • Prev by Date: Re: APIs to work with zip archives
  • Next by Date: Re: Copy managed object between contexts?
  • Previous by thread: Re: Core Data and multiple NIBs: how to share the managedObjectContext?
  • Next by thread: Re: Core Data and multiple NIBs: how to share the managedObjectContext?
  • Index(es):
    • Date
    • Thread