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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:41:42+00:00 2026-06-03T02:41:42+00:00

I have set up coredata in my application which I am reading a NSData

  • 0

I have set up coredata in my application which I am reading a NSData object into.. I have check to make sure all is fine and that the values are there, which they are and now I would like to pull that nsdata out and pass it to a method in my class.. But I am not sure how to read something like this from coredata..

The example I have seen of reading values from coredata is from the template code XCode generates.. but this is for an objectAtIndexPath:indexPath value… as shown below..

- (void)configureCell:(UITableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath
{
    NSManagedObject *object = [self.fetchedResultsController objectAtIndexPath:indexPath];
    cell.textLabel.text = [[object valueForKey:@"timeStamp"] description];
}

So I am hoping there is a way just to pull all of the NSData out of the attribute.. because thats all I have is just a blob of data that I parse myself.

any help would be greatly appreciated.

Update:

Okay so this is now how I am reading the data from my coredata store thanks to the great tutorial listed below.

 NSManagedObjectContext *context = [self.fetchedResultsController managedObjectContext];
                    NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
                    NSEntityDescription *entity = [NSEntityDescription entityForName:@"Manz" inManagedObjectContext:context];
                    [fetchRequest setEntity:entity];
                    NSArray *fetchedObjects = [context executeFetchRequest:fetchRequest error:nil];
                    for (NSManagedObject *info in fetchedObjects) {
                        [self startTheParsingProcess:[info valueForKey:@"masters"]]; //Send to a method if you like
//                        NSLog(@"content od coredata %@", [info valueForKey:@"masters"]); // Or log it to see whats in your coredata
                    }
  • 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-03T02:41:44+00:00Added an answer on June 3, 2026 at 2:41 am

    Core Data supports NSData properties. Just add one to your model and you will be able to save and load it via the NSFetchedResult class. If you don’t know what that means or how to do that, then I suggest a Core Data primer such as this one

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

Sidebar

Related Questions

I have some Core Data entries which are all fetched and thrown into an
I have a classic CoreData application, displaying it's data in NSTableView with Binding (all
I have a an application that uses CoreData. One of the entities contains date
I have a fairly simple iPhone app which utilizes CoreData for object persistence. The
I have set up a Core Data model that includes an entity, Item with
I have several objects set up in Core Data, one of which is Deck
I have set up multiple targets in a single xml file. I expect all
I have set up 2 servers which are linked. From my LOCAL SERVER, I
Currently I have one managedContext, many NSArrayControllers of entities which are all pretty interrelated,
I have a plain XCode CoreData enabled iPhone/iPad navigation application. In this I have

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.