• 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
Updating timestamp on save => merge error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Updating timestamp on save => merge error


  • Subject: Updating timestamp on save => merge error
  • From: Gideon King <email@hidden>
  • Date: Wed, 11 Aug 2010 14:48:43 +1000

I have a managed object I want to update with a "last saved timestamp" on save. I have the update done on the NSPersistentDocument -saveToURL:ofType:forSaveOperation:error: method.

This works fine, except on save as. I know that the save as creates a new document and updates from the managed objects, and then saves, and it seems that there is a managed object context merge happening in there.

In my case, the timestamp has changed, so I get an error message saying that it can't merge the changes.

Is there a way that I can tell that it's in the process of merging changes in the middle of a save as, and therefore not update the timestamp? Or some other method that I can accomplish my goal of having a save timestamp without running into this issue that happens during a Save As operation.

Thanks

Gideon






_______________________________________________

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

  • Follow-Ups:
    • Re: Updating timestamp on save => merge error
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: How to search for specific bindings in IB
  • Next by Date: Lake Forest Cocoaheads meeting 8/11, no set topic - come drive the discussion!
  • Previous by thread: -[NSBrowser setReusesColumns:] broken?
  • Next by thread: Re: Updating timestamp on save => merge error
  • Index(es):
    • Date
    • Thread