Skip to content

Instantly share code, notes, and snippets.

@joshaber
Created July 5, 2013 17:00

Revisions

  1. joshaber revised this gist Jul 31, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.m
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,6 @@
    takeUntil:self.rac_willDeallocSignal]
    subscribeNext:^(NSNotification *notification) {
    NSLog(@"got ur note bro: %@", notification);
    }];
    }];

    // some other shit
  2. joshaber created this gist Jul 5, 2013.
    6 changes: 6 additions & 0 deletions gistfile1.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    [[[NSNotificationCenter.defaultCenter
    rac_addObserverForName:NSApplicationDidBecomeActiveNotification object:nil]
    takeUntil:self.rac_willDeallocSignal]
    subscribeNext:^(NSNotification *notification) {
    NSLog(@"got ur note bro: %@", notification);
    }];