Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6212261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:29:05+00:00 2026-05-24T06:29:05+00:00

If a folder is placed in the Dock you can sort it by date

  • 0

If a folder is placed in the Dock you can sort it by “date added” – this is usually the default for the Downloads folder. (Sometimes the Finder does not appear to be using the date added but the date modified, but it can find the date added.) Where is the Finder figuring this out from? The standard file metadata, i.e. as obtained by stat, getattrlist or FSGetCatInfo) does not contain it. TIA

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T06:29:06+00:00Added an answer on May 24, 2026 at 6:29 am

    Yep, the date added could be inferred from other structures. In fact, it resides in Spotlight metadata.

    NSDate *dateAdded(NSURL *url)
    {
        NSDate *rslt = nil;
        MDItemRef inspectedRef = nil;
    
        inspectedRef = MDItemCreateWithURL(kCFAllocatorDefault, (CFURLRef)url);
        if (inspectedRef){
            CFTypeRef cfRslt = MDItemCopyAttribute(inspectedRef, (CFStringRef)@"kMDItemDateAdded");
            if (cfRslt) {
                rslt = (NSDate *)cfRslt;
            }
        }
        return rslt;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I show the folder (bin) where my class files are placed after
I have user control in my MVC2 app placed in the Content folder (it's
Why is that Web Service files (.asmx) have their code-behind placed in app_code folder
How to access App_Data folder in WCF service? I have placed a xslt file
I have placed .htaccess file in my server's root folder with following content: Redirect
I've placed a static class TestClass in the App_Code folder. The class contains a
I'm writing a program that will continuously process files placed into a hot folder.
I have created a custom AppleScript that works, and placed it in the folder:
I have placed my css in stylesheets folder and image in images folder. Both
I downloaded OpenFeint version 2.3.1, unzipped and placed the OpenFeint folder inside right underneath

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.