On 2013 Apr 23, at 14:41, Peng Gu <[email protected]> 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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to