Re: Core Data - fresh data for text field not connected to array controller
Re: Core Data - fresh data for text field not connected to array controller
- Subject: Re: Core Data - fresh data for text field not connected to array controller
- From: mmalc Crawford <email@hidden>
- Date: Fri, 26 Dec 2008 22:29:33 -0800
On Dec 26, 2008, at 9:48 PM, Steve Steinitz wrote:
However, I have one entity that has only one record (for user
preferences). I fetch the record fresh into its very own
managedObjectContext for each access -- and even resetting the
managedObjectContext. That direct binding, bypassing an
arrayController, Never discovers database changes once the
Preferences window is created.
(a) What did you bind to?
(b) Have you tested to ensure that the managed object is being updated?
- Did you use refreshObject:mergeChanges:?
- If so, is the context's staleness interval exceeded?
<http://developer.apple.com/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSManagedObjectContext_Class/Reference/Reference.html#//apple_ref/occ/instm/NSManagedObjectContext/refreshObject:mergeChanges:
>
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