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 3624324
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:29:37+00:00 2026-05-18T23:29:37+00:00

I would like to define tasks using NSDictionary, which I’d like to save in

  • 0

I would like to define tasks using NSDictionary, which I’d like to save in a plist file (I didn’t have much luck with Core Data so far), but got stuck at two points:

— When using initWithObjectsAndKeys: I can change the data type to number or boolean, using NSDate’s numberWithInt: and numberWithBool: methods, respectively. I can’t seem to find the method to change the type to date though. I couldn’t find anything like that in the documentation.

— The second problem I ran into was with the nested arrays. How can I add them to the dictionary?

I have uploaded a picture to here of what I am trying to achieve. Thank you in advance!

  • 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-18T23:29:37+00:00Added an answer on May 18, 2026 at 11:29 pm

    Do you mean NSNumber‘s +numberWithInt: and +numberWithBool: methods, not NSDate? It’s NSNumber that defines those methods.

    To convert a number to a date, it really depends on what the number is. If it’s a UNIX timestamp, then [NSDate dateWithTimeIntervalSince1970:theTimestampInSeconds].

    As for adding NSArray objects to a dictionary:

    [yourDictionary setObject:yourArray forKey:@"SomeKey"];
    

    You’ll have to post some code if you need more help as your question isn’t very clear.

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

Sidebar

Related Questions

I have an actionscript file that defines a class that I would like to
I would like to be able to define and use a custom type in
I would like to pass an argument(s) to a method being defined using define_method,
Is there a way to define the weekly period I would like to use
We would like to have user defined formulas in our c++ program. e.g. The
I have defined a personalizable property on a web part and I would like
I have an interface that defines some methods I would like certain classes to
In C#, I am using a library that defines an enum. I would like
I would like to remove/delete a migration file. How would I go about doing
(please excuse that I didn't use aliases). I would like my query output to

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.