Skip to content

Instantly share code, notes, and snippets.

@Legoless
Legoless / NSNorth.md
Last active April 28, 2016 22:20
NSNorth 2016 Talk Slides
- (RACSignal *)localUpdateSignal
{
return [[self localBundleUpdateSignal] flattenMap:^RACStream *(NSString *path)
{
return [self exerciseUpdateSignalWithBundlePath:path];
}];
}
- (RACSignal *)localBundleUpdateSignal
@Legoless
Legoless / gist:a57951d07dd701f7bb7d
Created November 13, 2014 09:53
Facebook Open Graph Story
id<FBOpenGraphAction> action = (id<FBOpenGraphAction>)[FBGraphObject graphObject];
[action setObject:objectId forKey:@"style"];
[action setObject: @"true" forKey: @"fb:explicitly_shared"];
@Legoless
Legoless / gist:0b694b5a45a12c8a1971
Created September 11, 2014 09:07
Weak or strong property?
@interface DateObject : NSObject
@property (nonatomic, strong) NSDate *date_UTC;
// Wrapper property, strong or weak?
@property (nonatomic) NSDate *date;
@end
@implementation DateObject