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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:41:32+00:00 2026-06-14T12:41:32+00:00

I am developing an app that saves a URL using CoreData. I am defining

  • 0

I am developing an app that saves a URL using CoreData. I am defining NSManagedObjectContext, NSManagedObjectModel, NSPersistentStoreCoordinator in CoreDataRepository object class instead of AppDelegate. I am saving this URL using reference of CoreDataRepository. I am using the code below for getting CoreData

-(void)getcoredata
 {
  _coredatarep = [[CoreDataRepository alloc] init];

  NSManagedObjectContext *context=[_coredatarep managedObjectContext];
  NSFetchRequest *request=[[NSFetchRequest alloc] init];
  NSEntityDescription *entity=[NSEntityDescription entityForName:@"UrlData" inManagedObjectContext:context];
  [request setEntity:entity];

  NSError *error;
  NSArray *recordsDataArray=[context executeFetchRequest:request error:&error];

  urlMutableArray = (NSMutableArray *)recordsDataArray;

  for (int i=0; i<[urlMutableArray count]; i++)
  {
      urlString = [NSString stringWithFormat:@"%@", [urlMutableArray objectAtIndex:0]];
       NSLog(@"urlString is %@",urlString);
      _urlLabel.text=urlString;
  }


}

In the output, label text shows as

<NSManagedObject: 0x9920620> (entity: UrlData; id: 0x991faf0 <x-coredata://A00EB59A-C480-4237-A749-8A40BF908655/UrlData/p1> ; data: <fault>)

Any idea why this is happening?

  • 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-14T12:41:33+00:00Added an answer on June 14, 2026 at 12:41 pm

    As I said in your other thread, it’s printing what you told it to print. [urlMutableArray objectAtIndex:0] is a UrlData object and that’s its description. If you want a string that’s stored inside the UrlData, you need to ask it for one of its properties…whatever you’ve defined them to be in your data model.

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

Sidebar

Related Questions

I'm developing a desktop Mac OS X App that saves its very simple data
I'm developing an app that has a model using race results / times etc..
I'm developing an app that periodically fetches data from server. Now I'm using a
I am developing an app that using sq-lite database. in my app when user
I'm developing web app that user can save his/her work to server. The data
I'm developing an app that receive contente (URI) and I'm testing it with IE10
I am developing an app that needs the chat functionality, presenting messages sent and
(I am developing an app that presents chat messages in a table. But, this
I am developing an app that has java files and php files. The java
i'm developing an app that has a jtable and user could start a download.

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.