• 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 commit changes made programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Core data commit changes made programmatically (From: Peng Gu <email@hidden>)

  • Prev by Date: Re: Temporarily disabling autosave
  • Next by Date: Re: Temporarily disabling autosave
  • Previous by thread: Core data commit changes made programmatically
  • Next by thread: Re: Core data commit changes made programmatically
  • Index(es):
    • Date
    • Thread