Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6099287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:15:23+00:00 2026-05-23T13:15:23+00:00

I have a CoreData / NSPersistentDoc app. It works fine. I added a new

  • 0

I have a CoreData / NSPersistentDoc app. It works fine.

I added a new entity to the MOM, and updated the version.

Now, when I create new instances of that Entity inside the MOC, the “Save” menu item remains disabled until/unless I create any instances of the old Entities that were already in the app.

The red dot button on titlebar correctly goes black to show that the document has changed – but OS X / NSDocument refuses to acknowledge this – it is impossible to do a Save.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:15:23+00:00Added an answer on May 23, 2026 at 1:15 pm

    I found the cause / solution – it was my own bug, but this answer may help others with similar issues.

    I was using Apple’s official approach for enabling the Copy/Paste menu items (by implementing validateMenuItem), and returning true/false for copy and paste at the right times.

    And I was returning NSPersistentDocument’s implementation for everything else (which included Save, although I didn’t see that).

    Then, when I added my new NSManagedObject, I added a sub-view, and sub-view-controller, and I delegated the validateMenuItem to this – i.e. so that it could handle it’s own copy/paste status.

    …but I had no code path for “if it’s not copy paste, and it’s not handled by the child, and it’s not handled by my NSPersistenDocument subclass … then hand it to NSPersistentDocument to decide”…

    …and so the Save menuitem was never being enabled.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed an iOS app that uses CoreData/SQLite. It works, but now I
I have CoreData setup in my app and I have an entity with an
I have a coredata based iphone app and have an Entity that has latitude
I have made a new split view iPad app using CoreData. All I have
Im new with CoreData and have a relatively good hold on it, except now
I am new on iphone development and I have problem with CoreData. I hardly
I have a sqlite DB created by my CoreData model automatically, but my app
I have a CoreData database which works on the root view controller. I have
I have a CoreData entity (waypoint) with a foreign key to another entity (track).
i have an iphone app that uses coredata to store its contents. users often

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.