Re: Newbie Core Data question.
Re: Newbie Core Data question.
- Subject: Re: Newbie Core Data question.
- From: Matthew Lindfield Seager <email@hidden>
- Date: Sun, 11 Oct 2009 21:27:03 +1100
>
> I want to achieve is that from the first list in the first view, I can do a
> drag and drop to the second view, and once dropped I want to show the data,
> so first I was trying setting the selected item directly, into the second
> view, and having a NSIObjectController in that second nib, that it's an
> entity of USer, with the manageObjectContext to be from the file Owners, (
> which is the ViewController, that its getting from the applications's
> delegate the managedObjectContext), and the content to be the selectedUser
> which is class of User : NSManagedObject. Then in the labels that I have
> place to show the info I tryed the bindings, as:
>
> Value:
> Bidn to : Custom Object Controller (the NSObjectController I mentioned
> above)
>
> but I can't set the Key Model and key path to something to work..
>
If I am understanding this correctly and if you managed to populate the
NSObjectController with an instance of "User" then I think you should be
able to simply set the label bindings as:
- bind to Custom Object Controller
- controller key "selection" (returns a proxy object)
- model key path "userName", "userID" or whatever your attribute names are.
If that doesn't work you may need to supply some more details. Of course
there are also hundreds of other list subscribers with more knowledge and
experience than I who may be able to help you more! :)
Regards,
Matt
_______________________________________________
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