Core Data/Bindings issue
Core Data/Bindings issue
- Subject: Core Data/Bindings issue
- From: Paul Tomlin <email@hidden>
- Date: Mon, 24 Nov 2008 19:08:08 +0200
Hi,
Precis: I'm sometimes seeing what appears to be the result of
[(NSManagedObject) description] in an NSPopUpButton instead of the
expected value as set in bindings.
I've got a Core Data Document Based Application in which I'm seeing
occasional issues with a binding.
The application uses two persistent stores, the default one for the
document and another one which is stored in the bundle and setup in
the document class -
configurePersistentStoreCoordinatorForURL:ofType:error: and -
initWithType:error:. The additional store is just a library of items
the documents refer to (or will when that bit is written). There are
also two data models which I believe are merged by the framework.
The document class also has a property which is lazily loaded from the
library store, basically the root object in the store. I'm not seeing
any issues/logs when I load this object from the managed context; it
appears to be loading fine. This property is referred to below as
rootObject (but it's not in the code).
On my view I have a popup button which lists entities of a to-many
relationship of the root object.
It's backed by an NSArrayController with the following settings:
ContentSet bound to File's Owner (the document) Model Key Path
rootObject.mySetOfStuff
The popup button has:
Content bound to MyArrayController.arrangedObjects
Content Values bound to MyArrayController.arrangedObjects.name
Sometimes, and is vaguely seems to be related to changing the XIB, the
labels of the cells in the popup are what I would expect from calling -
description on the managed objects it's listing. The rest of the UI
works as expected when it happens, but the cell content is gibberish.
And as luck would have it, I haven't been able to replicate this while
writing this mail.
Any ideas? I've not spotted anything useful in the Core Data Guide,
though it's probably there somewhere...
_______________________________________________
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