objective c - Core Data managedObjectContext not being updated with UI changes -


i have encountered strange problem when making updates core data objects using ui controls bound core data nsmanagedobjects.

symptoms follows: - outlineview displays list of hierarchical objects - detailed view shows data fields selected object, these include text fields, dates etc. - when updates made in detailed view these reflected in outlineview (e.g. diplayname used in outlineview). - when save changes managedobjectcontext tells me there no changes saved. reason ui not letting context know things have changed. - given bindings done in ib assume changes in ui automatically reflected in managedobjectcontext - reason 1 of fields seems result in context recognising changes have been made not others. 1 field happens popup list containing objects entity in core data database.

if has inkling on causing - there way monitor when ui changes made, example changing text in text field, , whether these changes propagated managedobjects.

edit found problem - reason had changed of properties @dynamic @synthesize in objective-c classes core data entities. breaking things !

the iboutlets need hooked callbacks changes known. don't report changes unless hook up. though textfield.text != oldtext, doesn't matter unless take update, save entity, see if recognizes


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -