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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:17:06+00:00 2026-05-26T10:17:06+00:00

I got ~30000 rows of data in an app that I would like to

  • 0

I got ~30000 rows of data in an app that I would like to add to a CSV file and email to the user. Each data point currently has ~20 properties and I’m adding ~20 more values as extended attributes, stored in a NSMutableDictionary. That’s a lot of data, and it already takes ~10 seconds to create the file and attach it to an email.

I can build a string of CSV values from regular properties using

[NSString stringWithFormat:@"%f,%f,%f",prop1,prop2,prop3 ];

I can iterate the dictionary like this. I can repeatedly build a string for each key, but this would re-create a new string each time. Is there an equivalent of StringBuilder or StringBuffer in iOS?

for(NSString *aKey in myDictionary){

    NSLog(aKey);
   //append string

}

What’s the best way to combine existing properties and extended attributes from an NSMutableDictionary to create a single string of comma separated values?

  • 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-26T10:17:06+00:00Added an answer on May 26, 2026 at 10:17 am

    Initialize a mutable string outside the for loop and append it however you want.

    NSMutableString *large_CSV_String = [[NSMutableString alloc] init];
    for(NSString *aKey in myDictionary){
    
        // Add something from the key?? Your format here.
        [large_CSV_String appendFormat:@",%@",aKey];
    
    }
    NSLog(@"%@",large_CSV_String);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some Json like data got crawling a URL [[[oppl.lr,[,,,,,,,,,,,[[[[[,A Google User] ,,,,1]
I've got a photo_albums controller but would like all my actions in that controller
got some problems. Built an applet that has to be used step-by-step. After each
I've got a two-column dataset with about 30000 clusters and 10 factors like this:
I've got a sqlite table actions that looks something like this: uuid varchar (36)
I have a csv file, a big one, 30 000 rows. I've tried to
So I got something like this (all in column A, seperate rows): Title01 atext
I've got a Node.js Express web app that is using the default port 3000
I've got a datastructure that contains several hundred coordinate points that look like this:
Got a seg fault from my memcpy that gdb can't give me anything else

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.