Re: Core data commit changes made programmatically
Re: Core data commit changes made programmatically
- Subject: Re: Core data commit changes made programmatically
- From: Jerry Krinock <email@hidden>
- Date: Wed, 24 Apr 2013 11:00:31 -0700
On 2013 Apr 23, at 14:41, Peng Gu <email@hidden> wrote:
Peng, I don't quite understand all of what you're doing there, but from this remark,
> The code above works, but core data won't save the attributes changes
> unless I type some words in the Textview. Calling moc to commit editting
> doesn't save the changes too.
this makes me think that maybe your problem is not with Core Data but with the text view, or Cocoa bindings. See if the appropriate setter in your data model is being invoked when you change attributes. The chain of events is…
Text View ends editing or for some other reason changes it value
Cocoa Bindings grabs it.
Cocoa Bindings invokes the setter in your data model
Core Data commits (later)
Core Data saves (later)
Start at the beginning, probe and determine which link is broken.
_______________________________________________
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