Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CDEvents+ReactiveCocoa でファイル監視

CDEvents+ReactiveCocoa でファイル監視

Tomoki Aonuma

October 18, 2014
Tweet

More Decks by Tomoki Aonuma

Other Decks in Programming

Transcript

  1. FSEventStreamRef FSEventStreamCreate( CFAllocatorRef allocator, FSEventStreamCallback callback, FSEventStreamContext *context, CFArrayRef pathsToWatch,

    FSEventStreamEventId sinceWhen, CFTimeInterval latency, FSEventStreamCreateFlags flags); $"1* UPPMPXMFWFM
  2. + rac_signalFor... { ... objc_setAssociatedObject( signal, // ←γάφϧ͕ _cmd, watcher,

    // ←͍ͭ͜Λอ࣋ OBJC_ASSOCIATION_RETAIN); $%&WFOUTͷ Πϯελϯε͸ʁ
  3. - (void)foo { @onExit { NSLog(@"3"); }; { @onExit {

    NSLog(@"1"); }; } NSLog(@"2"); }
  4. @protocol NoDragDrop <NSObject>; @concrete - (NSUInteger)webView:...; @end ! @concreteprotocol(NoDragDrop) -

    (NSUInteger)webView:... {...} @end ! @interface MyViewController () <NoDragDrop>; @end