Re: Setting (not saving) NSPersistentDocument Metadata changes file Modification Date
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