• 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: getting last accessed date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting last accessed date


  • Subject: Re: getting last accessed date
  • From: "Rick C." <email@hidden>
  • Date: Sun, 10 Jul 2011 18:08:42 +0800

Great thanks I will look into this!



On Jul 9, 2011, at 3:40 PM, Gary L. Wade wrote:

> Using Core Services or OS, you can call FSGetCatalogInfo. Also, I recall things are different for stat under 64 bit, so you may want to make sure you're doing the right thing.
>
> - Gary L. Wade (Sent from my iPhone)
>
> On Jul 8, 2011, at 8:37 PM, "Rick C." <email@hidden> wrote:
>
>> Ok I have double-checked and the icon isn't actually the issue since I call iconForFile: after using stat.  With the original code I posted it just gives me today's date.  I can go into Finder and as an example I found a file that has a Last Opened date of 2009 and when I run stat it gives me today's date.  So it looks like stat is definitely not working...
>>
>> Is there not an older Carbon method that was used for this before?  Is the only way by using spotlight metadata?
>>
>> On a related note...I just updated one of my drives to Lion GM and on that drive I had a hard time to find a file with a different Last Opened date vs. Last Modified.  Makes me think the Last Opened date in Finder is coming from spotlight metadata could that be true?  If so then it looks like using the spotlight metadata and just falling back on the modification date might be the right way to go anyways???
>>
>>
>> On Jul 8, 2011, at 5:38 PM, Chris Ridd wrote:
>>
>>>
>>> On 8 Jul 2011, at 09:54, Rick C. wrote:
>>>
>>>> Sorry about that no I'm on Mac OS I was just sending the email from my iPhone :-)
>>>>
>>>> Ok I double-checked and I think I am getting the same results as you are.  But iconForFile does not modify the Last Opened date that shows in Finder.  So the question is how do I get that besides using the spotlight metadata?
>>>
>>> Does the resource fork (where the icon lives) have a different set of timestamps from the data fork?
>>>
>>> Chris
>>
>> _______________________________________________
>>
>> 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

_______________________________________________

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

References: 
 >getting last accessed date (From: "Rick C." <email@hidden>)
 >Re: getting last accessed date (From: Joar Wingfors <email@hidden>)
 >Re: getting last accessed date (From: "Rick C." <email@hidden>)
 >Re: getting last accessed date (From: Scott Ribe <email@hidden>)
 >Re: getting last accessed date (From: "Stephen J. Butler" <email@hidden>)
 >Re: getting last accessed date (From: "Rick C." <email@hidden>)
 >Re: getting last accessed date (From: "Stephen J. Butler" <email@hidden>)
 >Re: getting last accessed date (From: "Rick C." <email@hidden>)
 >Re: getting last accessed date (From: Chris Ridd <email@hidden>)
 >Re: getting last accessed date (From: "Rick C." <email@hidden>)
 >Re: getting last accessed date (From: "Gary L. Wade" <email@hidden>)

  • Prev by Date: Cocoa Touch: Accessory view never calls "up outside" action?
  • Next by Date: Re: Help finding documentation about printing
  • Previous by thread: Re: getting last accessed date
  • Next by thread: Re: getting last accessed date
  • Index(es):
    • Date
    • Thread