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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:32:07+00:00 2026-05-15T12:32:07+00:00

I have a dictionary .plist that has a subarray in it, however during the

  • 0

I have a dictionary .plist that has a subarray in it, however during the conversion in Json in converts to an array. The item is “profile” in the image below, as you can see, it’s a Dictionary, how do I turn programmatically convert into an array”:

alt text http://www.baublet.com/images/dict2.png

I would also like the items in the dictionary to have Item 0, Item 1, etc. so it looks like this when completed so I can use it in a drill down UItable.

alt text http://www.baublet.com/images/array4.png

Thanks for the feedback on the question, I reworked it.

Michael

  • 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-15T12:32:08+00:00Added an answer on May 15, 2026 at 12:32 pm

    Given that the dictionary contains a series of key/value pairs, it isn’t clear what turning it into an array even means. As well, you haven’t said what you want to do with the array.

    Do you want just the values? Do you need them in key,value,key,value order? Do they need to be in some order? Do you want the array to replace the dictionary? Do you need the array by itself?


    Given the extent of the rewriting you are doing, I would suggest creating a container — NSMutableDictionary or NSMutableArray, as appropriate — and then walking down the existing container, inserting new items in your mutable container in whatever form you need.

    It would be straightforward using for (... in ...) to enumerate the dictionaries and arrays.

    As long as you continue to use the string values found within the original — there is no reason to copy them — then the memory use won’t be horribly egregious.

    Relevant documentation:

    http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Collections/Collections.html#//apple_ref/doc/uid/10000034i

    http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/PropertyLists/Introduction/Introduction.html#//apple_ref/doc/uid/10000048i

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

Sidebar

Ask A Question

Stats

  • Questions 475k
  • Answers 475k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer All you have to do is hook into your setTimeout… May 16, 2026 at 4:30 am
  • Editorial Team
    Editorial Team added an answer first, second = [], [] for lst in (first, second):… May 16, 2026 at 4:30 am
  • Editorial Team
    Editorial Team added an answer Current Web works only for the Server Side code that… May 16, 2026 at 4:30 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.