I hereby claim:
- I am nicktoumpelis on github.
- I am nicktoumpelis (https://keybase.io/nicktoumpelis) on keybase.
- I have a public key ASDhV8XEW3HX-lbFiCZUO5E5CqW53I0Vp0WCdnpYwlr-Dwo
To claim this, I am signing this object:
git clean -xfd | |
git submodule foreach --recursive git clean -xfd | |
git reset --hard | |
git submodule foreach --recursive git reset --hard | |
git submodule update --init --recursive |
git checkout --orphan temp_master | |
git rm -rf . | |
git commit --allow-empty -m 'Make initial root commit' | |
git rebase --onto temp_master --root master | |
git branch -D temp_master |
I hereby claim:
To claim this, I am signing this object:
._* | |
.DS_Store | |
.DS_Store? | |
.Spotlight-V100 | |
.Trashes | |
*~.nib | |
*.lock | |
*.mode1v3 | |
*.mode2v3 |
#import <BugSense-iOS/BugSenseCrashController.h> | |
- (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
//... | |
NSDictionary *myCustomData = [NSDictionary dictionaryWithObjectsAndKeys:@"myObject", @"myKey", nil]; | |
BugSenseCrashController *crash = | |
[BugSenseCrashController sharedInstanceWithBugSenseAPIKey:@"<Your BugSense API Key>" | |
userDictionary:myCustomData | |
sendImmediately:NO]; | |
//... |
NSManagedObjectModel *managedObjectModel = ...; | |
NSFetchRequest *fetchRequest = [managedObjectModel fetchRequestTemplateForName:@"Fetch Request Name"]; |
NSManagedObjectContext *managedObjectContext = ...; | |
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; | |
[fetchRequest setEntity:[NSEntityDescription entityForName:@"Entity" inManagedObjectContext:managedObjectContext]]; | |
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"..."]; | |
[fetchRequest setPredicate:predicate]; | |
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"key" ascending:YES]; | |
[fetchRequest setSortDescriptors:@[sortDescriptor]]; |
NSManagedObjectContext *managedObjectContext = ...; | |
NSFetchRequest *fetchRequest = ...; | |
NSError *error = nil; | |
NSArray *results = [managedObjectContext executeFetchRequest:request error:&error]; | |
if (error) { | |
NSLog(@"Error: %@\n%@", [error localizedDescription], [error userInfo]); | |
return; | |
} |
- (void)initializeCoreDataStack | |
{ | |
// Some error checking is necessary... | |
NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"ProjectName" withExtension:@"momd"]; | |
NSManagedObjectModel *managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL]; | |
NSPersistentStoreCoordinator *persistentStoreCoordinator = | |
[[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:managedObjectModel]; |
// external constants (defined in AAAKlass.m) | |
extern const CGFloat AAKlassVerticalMargin; | |
extern NSString * const AAAKlassIdentifier; |