Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot edit database #47

Open
pawurb opened this issue Feb 7, 2017 · 9 comments
Open

Cannot edit database #47

pawurb opened this issue Feb 7, 2017 · 9 comments

Comments

@pawurb
Copy link

pawurb commented Feb 7, 2017

Hello. Probably I am doing something wrong but I cannot save changes to my database. Neither edit nor add new objects. I don't have any database validations in place. I am using a master branch build.

I managed to open my database and edit entry values. I cannot find the option to save the changes. After clicking File > Refresh state is reverted to the original one. Clicking File > Save only offers to create a new Core Data editor file. Is there any way to save the manually applied changes so that they will be reflected in my simulator app? Clicking the settings icon left of csv button raises the error mentioned in #45 . Maybe it is some system file access issue?

I will be grateful for any tips.

@ChristianKienle
Copy link
Owner

Can you attach your model and sample store? If you don't want to attach it here you can send it to me privately: [email protected]

@pawurb
Copy link
Author

pawurb commented Feb 10, 2017

I sent you an email with files you asked for. btw. I also get the following error:

CoreData: warning: Unable to load class named 'FocusSession' for entity 'FocusSession'.  Class not found, using default NSManagedObject instead.

I use Manual/None (then Editor > Create NSManagedObject Subclass) codegen option for my model class. Could it be the reason?

@ChristianKienle
Copy link
Owner

Thanks for the files. The error message indicates that you are using custom managed object classes. When a model is loaded with NSManagedObjectModel and I start to create objects Core Data tries to create objects using your custom managed objects. Since Core Data Editor does not know your classes you normally would see this error. But Core Data Editor works around this problem by modifying a copy of your model and sets the classes of your entities to NSManagedObject. For some reason this did hot happen in your case... I will investigate.

@ChristianKienle
Copy link
Owner

I was not able to fully reproduce your problem: Just like you i got the warning in the console but I was still able to edit and save. Can you please try again with the fix?

@pawurb
Copy link
Author

pawurb commented Feb 22, 2017

Unfortunately still does not work. What action should save the changes ? Clicking the settings button keeps raising the same error.

@ChristianKienle
Copy link
Owner

Can you make a short video using QuickTime? I think that would help...

@pawurb
Copy link
Author

pawurb commented Mar 13, 2017

@sptim
Copy link

sptim commented Mar 30, 2017

@pawurb You have to press CMD-S or select Save from the file menu. This will save the CoreDataEditor project to a *.coredataeditor5 file && any changes made to your persistent store.

@tdimeco
Copy link

tdimeco commented May 10, 2017

Last year, I forked the project to add a Save Store Only feature:

save-store

You can find the code on my repo: https://github.com/tdimeco/Core-Data-Editor/commits/custom-build

Maybe it can be included in the project now?

– Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants