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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:36:02+00:00 2026-05-13T22:36:02+00:00

Hi I am having issues with the following and it crashes the iPhone simulator,

  • 0

Hi I am having issues with the following and it crashes the iPhone simulator, while the script has no errors it did bring up one warning in this script.

[c setImage:[attributeDict objectForKey:@"img"]];

The warning is

City may not respond to -setImage:

I am not sure what I have done wrong here is the fill source code.

#import "LocationsParser.h"
@implementation LocationsParser
@synthesize managedObjectContext;
-(id) initWithContext: (NSManagedObjectContext *) managedObjContext
{
    self = [super init];
    [self setManagedObjectContext:managedObjContext];
    return self;
}
- (void)parseXMLFileAtURL:(NSURL *)URL parseError:(NSError **)error
{
    // /Applications/MyExample.app/MyFile.xml
    NSXMLParser *parser = [[NSXMLParser alloc] initWithContentsOfURL:URL];
    // Set self as the delegate of the parser so that it will receive the parser delegate methods callbacks.
    [parser setDelegate:self];
    // Depending on the XML document you're parsing, you may want to enable these features of NSXMLParser.
    [parser setShouldProcessNamespaces:NO];
    [parser setShouldReportNamespacePrefixes:NO];
    [parser setShouldResolveExternalEntities:NO];
    [parser parse];

    NSError *parseError = [parser parserError];
    if (parseError && error) {
        *error = parseError;
    }

    [parser release];
}

-(void) emptyDataContext
{
    // Get all counties, It's the top level object and the reference cascade deletion downward
    NSMutableArray* mutableFetchResults = [CoreDataHelper getObjectsFromContext:@"County" :@"Name" :NO :managedObjectContext];

    // Delete all Counties
    for (int i = 0; i 
  • 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-13T22:36:03+00:00Added an answer on May 13, 2026 at 10:36 pm

    use this

    [c setImage:(id)[attributeDict objectForKey:@”img”]];

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

Sidebar

Related Questions

I'm following this tutorial attempting to learn XNA, but I'm having issues making my
I'm having issues with using the following format using WinSCP open sftp://user:password@site.com vs. this,
I am having some issues DeSerializing the following Json, it runs, throws no errors
One of the developers in my team is having the following issues. They have
I'm having issues with the following menu. I've been adapting a script from kirupa
I am having issues with the following code which loads an SQLite database. -
Following on from my earlier question , I am still having issues with loading
I'm having issues parsing some XML using DefaultHandler2. My XML takes the following form:
I'm having issues after merging 2 LINQ lists. I get the following error: the
I am having issues passing two coordinates from one function to another. I don't

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.