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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:15:50+00:00 2026-06-05T08:15:50+00:00

Download my source for reference! I’m new to iOS development and I’m trying to

  • 0

Download my source for reference!

I’m new to iOS development and I’m trying to learn on my own…I need some assistance

Firstly, I’m getting an error when switching to the “Safety Culture Master View”…
Storyboard

2012-06-07 11:50:54.720 SafetyCulture[1777:fb03] *** Terminating app
due to uncaught exception ‘NSInternalInconsistencyException’, reason:
‘+entityForName: could not locate an NSManagedObjectModel for entity
name ‘Event”

I don’t know how to resolve this…

Secondly, I want to create a record via a two-step process…and on the “question…” VC, I want the user to answer about 20 questions–but they’ll all be formatted the same way, so I don’t need additional xibs, do I? So when it gets to the last question, I want the “next” button to say “finish” or “save”…should be simple?

I’m eager to get on my feet with Xcode…if you need additional information, please let me know and I’ll do my best!

  • 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-05T08:15:51+00:00Added an answer on June 5, 2026 at 8:15 am

    I tracked down the code which was throwing the exception:

    NSEntityDescription *entity = [NSEntityDescription entityForName:@"Event" inManagedObjectContext:self.managedObjectContext];
    

    in your method - (NSFetchedResultsController *)fetchedResultsController, a custom setter for the property of the same name, which initializes one if not present. The real problem is that self.managedObjectContext is currently nil. Nowhere in your code is the master view controller assigned the managedObjectContext.

    The easiest way to do this is to grab it from the AppDelegate, in this manner

    #import "safetyCultureAppDelegate.h" //this needs to be at the top to make sure the compiler knows what you’re on about.
    ...
    self.managedObjectContext = [(safetyCultureAppDelegate *)[[UIApplication sharedApplication] delegate] managedObjectContext]; //put this in the viewDidLoad, or wherever you can set it when the Master VC is created.
    

    This was pretty easy to solve using breakpoints, which I urge you to learn how to use as they are incredibly useful with reproducible bugs like these.

    As for your second question, there are a million ways to skin this cat. There’s nothing wrong with creating a bunch of scenes and having push segues between them, and give them a shared “question class”. It would look pretty nice and there wouldn’t be much code involved. Performance won’t be an issue.

    That said, if you want to do it programmatically, use an NSArray of NSDictionaries, with each dict holding a question and possible answers, and program the controller to load them from the array when hitting back or forward, remembering to save. If the questions are static, I really urge you to use the Storyboard approach, though. Far less fiddly.

    Breakpoints and segues are all well and good, but right now I urge you to make a coffee, get some biscuits and read the Core Data Programming Guide cover to cover. You’ll find Apple’s documentation highly accessible.

    If you’re really new to this, follow this advice. It worked for me.

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

Sidebar

Related Questions

I'm trying to download the source of a particular wikipedia article to my computer.
I am trying to download a source code file from a web site which
I have been trying to follow this example (download the source code from a
I was told that Microsoft has released reference source code for some .NET libraries
I'm new to the ffmpeg development. I've got my ffmpeg via ffmpeg.mplayerhq.hu/download.html using `git
So I have download the source code successfully, built it successfully, and can run
I am using svn to download the source code to an open source project.
I'm looking for a C# / ASP.net website that I can download the source
I download the latest source code from here: http://aspnetwebstack.codeplex.com/SourceControl/list/changesets 1) add the system.web.mvc project
I have a download.php file with this source: <?php $filename = $_GET['file']; header(Cache-Control: must-revalidate,

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.