• 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
Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date


  • Subject: Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
  • From: "Sean McBride" <email@hidden>
  • Date: Thu, 4 Nov 2010 18:37:22 -0400
  • Organization: Rogue Research Inc.

On Wed, 3 Nov 2010 22:00:43 -0700, Jerry Krinock said:

>So, I do this:
>
>• Read and remember the file's modification date (NSFileManager)
>• Set the desired metadata
>• Set the file's modification date back to the remembered value
>(NSFileManager)
>• Invoke -saveDocument:
>
>Voila - no more stupid warning sheet.
>
>Why does +[NSPersistentStoreCoordinator
>setMetadata:forPersistentStoreOfType:URL:error:] change the file
>modification time given that, per documentation, it does not modify the file?

It's probably a bug.  Although all cases I knew about are fixed now (10.6.4),
we previously knew of several ways to get that annoying message to
appear.  My guess is you've found another.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada
_______________________________________________

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: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
      • From: Jerry Krinock <email@hidden>
References: 
 >Setting (not saving) NSPersistentDocument Metadata changes file Modification Date (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Working with C-functions in separate NSThreads: via Stack or Heap?
  • Next by Date: Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
  • Previous by thread: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
  • Next by thread: Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
  • Index(es):
    • Date
    • Thread