> On Mar 14, 2016, at 6:11 PM, Rick C. <rickcort...@gmail.com> wrote: > > 2. NSURLContentAccessDateKey returns the current date like mentioned here - > http://stackoverflow.com/questions/13914600/get-the-real-last-opened-date > <http://stackoverflow.com/questions/13914600/get-the-real-last-opened-date> > 3. The same problem with st_atimespec it returns the current date
The thread you linked to doesn’t say the _current_ date, it says "very strange dates, usually near 3:00-3:30 AM, today or yesterday”. That’s probably the last time the file was scanned by some system daemon like the Spotlight indexer or Time Machine, as I said in my previous reply. > So from what I see there is no real alternative to kMDItemLastUsedDate if > that value is missing. Additional thoughts? It sounds like what you want is a high level “last time this file was opened in a GUI application by a user command” property, which isn’t something the filesystem knows anything about. Higher-level frameworks seem to update kMDItemLastUsedDate to implement this. If that data is lost, I don’t think you have an alternative. —Jens _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com