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

  • SEARCH
  • Home
  • 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 8659709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:04:40+00:00 2026-06-12T16:04:40+00:00

In OS X desktop application NSFileManager *manager = [NSFileManager defaultManager]; NSDictionary *dirMeta = [NSDictionary

  • 0

In OS X desktop application

NSFileManager *manager = [NSFileManager defaultManager];

NSDictionary *dirMeta = [NSDictionary dictionaryWithObjectsAndKeys:@"jack", @"creator", nil];
NSLog(@"%@", [dirMeta objectForKey:@"creator"]);//output jack

[manager createDirectoryAtPath:@"/Users/loki/Desktop/fromCap" withIntermediateDirectories:YES attributes:dirMeta error:NULL];

NSDictionary *attri2 = [manager attributesOfItemAtPath:@"/User/loki/Desktop/fromCap" error:nil];
NSLog(@"value is %@", [attri2 objectForKey:@"creator"]);//output null

Am I using createDirectoryAtPath wrongly?
Why attri2 get nothing data out of the directory?

  • 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-06-12T16:04:41+00:00Added an answer on June 12, 2026 at 4:04 pm

    The attributes dictionary is used to specify the filesystem attributes of the new directories/files:

    attributes The file attributes for the new directory and any newly
    created intermediate directories. You can set the owner and group
    numbers, file permissions, and modification date. If you specify nil
    for this parameter or omit a particular value, one or more default
    values are used as described in the discussion. For a list of keys you
    can include in this dictionary, see “Constants” section lists the
    global constants used as keys in the attributes dictionary. Some of
    the keys, such as NSFileHFSCreatorCode and NSFileHFSTypeCode, do not
    apply to directories.

    They are not for attaching arbitrary meta data. Where did you suppose this meta data would be stored anyway?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My desktop application serializes objects using XmlSerializer . I was suggested to leverage DataContractSerializer
I'm developing a desktop application in WPF, application that is manipulating a considerable amount
I have a DESKTOP application which interacts with a web service through their RESTful
I have a WPF Desktop application using Prism 4, in my bootstrapper i have
I want to build desktop application for Windows OS and use Google Drive to
I have created a desktop application which continuously changes the image on a fixed
I have a custom desktop application which invokes an ASMX web service. The Service
I have created a desktop application in WPF that I wish to supply to
I have a desktop application where the user has a library of encrypted ZIP
I m making Desktop Application in netbeans plpatform in java swing.when i run my

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.