FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
FSEventStream.h
Go to the documentation of this file.
1 //
2 // FSEventStream.h
3 // FoundationExtension
4 //
5 // Created by Jeong YunWon on 12. 10. 28..
6 // Copyright (c) 2012 youknowone.org. All rights reserved.
7 //
8 
16 #import <Cocoa/Cocoa.h>
17 
18 @class FSEventStream;
19 
24 
32 - (void)eventStream:(FSEventStream *)eventStream path:(NSString *)path event:(FSEventStreamEventFlags)eventFlags id:(FSEventStreamEventId)eventId;
33 
34 @end
35 
42 @interface FSEventStream : NSObject {
43  FSEventStreamRef _stream;
44  id<FSEventStreamDelegate> __unsafe_unretained _delegate;
45 
46  NSUInteger _managedRetainCount;
47 }
48 
50 @property(nonatomic, unsafe_unretained) id<FSEventStreamDelegate> delegate;
52 @property(nonatomic, readonly) FSEventStreamEventId latestEventId;
53 
64 - (instancetype)initWithPaths:(NSArray *)paths latency:(NSTimeInterval)latency flags:(FSEventStreamCreateFlags)flags delegate:(id)delegate;
70 + (instancetype)scheduledEventStreamWithPaths:(NSArray *)paths latency:(NSTimeInterval)latency flags:(FSEventStreamCreateFlags)flags delegate:(id)delegate;
77 + (instancetype)scheduledEventStreamWithPath:(NSString *)path latency:(NSTimeInterval)latency flags:(FSEventStreamCreateFlags)flags delegate:(id)delegate;
86 - (void)invalidate;
87 
97 - (BOOL)start;
108 - (void)stop;
109 
122 - (void)scheduleWithRunLoop:(NSRunLoop *)runLoop mode:(NSString *)mode;
129 - (void)unscheduleFromRunLoop:(NSRunLoop *)runLoop mode:(NSString *)mode;
130 
140 - (FSEventStreamEventId)flushAsync;
149 - (void)flushSync;
150 
151 @end
id< FSEventStreamDelegate > __unsafe_unretained _delegate
Definition: FSEventStream.h:44
NSUInteger _managedRetainCount
Definition: FSEventStream.h:46
FSEventStreamRef _stream
Definition: FSEventStream.h:43
FSEventSteam delegate.
Definition: FSEventStream.h:23
FSEventSteam object wrapper.
Definition: FSEventStream.h:42