Skip to content

Instantly share code, notes, and snippets.

View palmtrae's full-sized avatar
♠️

Fredrik Palm palmtrae

♠️
  • Vitec Appva AB
  • Skövde, Sweden
View GitHub Profile
@wolfhechel
wolfhechel / NSArray+firstObject.h
Created October 7, 2013 08:08
Butloads of Categories
//
// NSArray+firstObject.h
//
// Created by Pontus Carlsson on 2013-10-02.
//
#import <Foundation/Foundation.h>
@interface NSArray (firstObject)
@chourobin
chourobin / RKAppDelegate.m
Last active October 22, 2018 14:22
Setting up magical record with RestKit
#import <RestKit/RestKit.h>
#import "CoreData+MagicalRecord.h"
// Use a class extension to expose access to MagicalRecord's private setter methods
@interface NSManagedObjectContext ()
+ (void)MR_setRootSavingContext:(NSManagedObjectContext *)context;
+ (void)MR_setDefaultContext:(NSManagedObjectContext *)moc;
@end
@implementation AppDelegate