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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:56:33+00:00 2026-05-27T11:56:33+00:00

Im using coredata to check the content of an entity, but still remembering how

  • 0

Im using coredata to check the content of an entity, but still remembering how to go about to do it,

PFIWIAppDelegate* delegate = (PFIWIAppDelegate*)[[UIApplication sharedApplication] delegate];


NSEntityDescription *entity = [NSEntityDescription entityForName:@"productPoints" inManagedObjectContext:[delegate managedObjectContext]]; 

NSFetchRequest *request = [[NSFetchRequest alloc] init]; 

[request setEntity:entity];

NSLog(@" la resposta por deux:: %@", request);


NSError *error = nil;
NSArray *results = [[delegate managedObjectContext] executeFetchRequest:request error:&error];

NSLog(@"tu fetch master db ::%@",results);

so im sure there are properties in my entity “productPoints” [checked in sqlite Manager)

how to see the data?

in my logs I see

la resposta por deux:: <NSFetchRequest: 0x6cd1780> (entity: productPoints; predicate: ((null)); sortDescriptors: ((null)); type: NSManagedObjectResultType; )
2011-12-14 14:50:44.266 PFIWIN0196[7524:fb03] tu fetch master db ::(
"<productPoints: 0x6cd38c0> (entity: productPoints; id: 0x6cd2ce0 <x-coredata://888E340F-6CBF-4EED-B9D9-9C3FB06244F3/productPoints/p6> ; data: <fault>)",
"<productPoints: 0x6cd3b70> (entity: productPoints; id: 0x6cd2cf0 <x-coredata://888E340F-6CBF-4EED-B9D9-9C3FB06244F3/productPoints/p7> ; data: <fault>)"

so i guess im seeing the 2 objects of my entity, but how to see the properties,

thanks!

  • 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-27T11:56:34+00:00Added an answer on May 27, 2026 at 11:56 am

    Your objects are in the results array, as you surmise. To see the properties all you have to do is access them, using something along the lines of:

    productPoints* firstProduct = [results objectAtIndex:0];
    NSLog("Some property value:  %@", firstProduct.someProperty);
    

    Also note that the standard Core Data API’s are absolutely ridiculous for a framework that is supposed to simplify the task of storing and retrieving data. I strongly suggest you try using the NSManagedObjectContext+EasyFetch category discussed here and in github here.

    Then your code can be rewritten as:

    PFIWIAppDelegate* delegate = (PFIWIAppDelegate*)[[UIApplication sharedApplication] delegate];
    NSArray* results = [[delegate managedObjectContext] fetchObjectsForEntityName: @"productPoints"];
    NSLog(@"tu fetch master db ::%@",results);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to update an existing record in a database using CoreData, but
In my app I am using coredata to store details about the document Here's
I am using CoreData and have an Entity ContactList defined, which I created using
i am using coredata in my application to store and retrieve values.i want to
I'm using CoreData (NSManagedObject, UIManagedDocument) for an iOS app and I was wondering if
I am using CoreData with iPhone SDK. I am making a notes app. I
I have a sample app using CoreData, and am now ready to convert my
I am working in the iPhone messaging app. Am using coredata to store the
I am new to Objective C and iPhone development. I am using CoreData on
I am trying to add a sqlite DB into an application using this: CoreData:

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.