I think the problem is that Challenges is a NSManagedObject
class and you need the designated initializer:
initWithEntity:insertIntoManagedObjectContext:
instead of
Challenges *newChallenge = [[Challenges alloc] init];
More Related Contents:
- Does every Core Data Relationship have to have an Inverse?
- Best practice? – Array/Dictionary as a Core Data Entity Attribute [closed]
- How to update existing object in Core Data?
- Class methods which create new instances
- How to Deal with Temporary NSManagedObject instances?
- NSFetchedResultsController with relationship not updating
- CoreData relationship fault?
- Core Data NSPredicate “deleted == NO” does not work as expected
- NSPredicate: filtering objects by day of NSDate property
- Working with data in iOS Apps (What to choose? NSData, CoreData, sqlite, PList, NSUserDefaults)
- Why is my transformable Core Data attribute not using my custom NSValueTransformer?
- Cocoa Core Data efficient way to count entities
- duplicate interface declaration for class ‘test_coredataAppDelegate’
- ‘+entityForName: nil is not a legal NSManagedObjectContext parameter – Core Data
- insertNewObjectForEntityForName:
- NSPrivateQueueConcurrencyType Not saving properly
- What does Apple mean when they say that a NSManagedObjectContext is owned by the thread or queue that created it?
- Calculating a simple sum with Core Data
- Best practices for overriding isEqual: and hash
- How to read data from NSFileHandle line by line?
- What is a typedef enum in Objective-C?
- Save An Image To Application Documents Folder From UIView On IOS
- Objective-C multiple inheritance
- Why are umbrella frameworks discouraged? [closed]
- NSMutableArray – force the array to hold specific object type only
- Most efficient way to iterate over all the chars in an NSString
- Embed font in a mac bundle
- Finding a substring in a NSString object
- How can I calculate the difference between two dates?
- How to make a smooth, rounded, volume-like OS X window with NSVisualEffectView?