Skip to content

robenkleene/BubbleUp

Repository files navigation

BubbleUp Status Status

A simple Cocoa Wrapper for macOS File System Events API.

NS_ASSUME_NONNULL_BEGIN
@protocol BBUDirectoryWatcherDelegate <NSObject>
@optional
- (void)directoryWatcher:(BBUDirectoryWatcher *)directoryWatcher directoryWasCreatedOrModifiedAtPath:(NSString *)path;
- (void)directoryWatcher:(BBUDirectoryWatcher *)directoryWatcher fileWasCreatedOrModifiedAtPath:(NSString *)path;
- (void)directoryWatcher:(BBUDirectoryWatcher *)directoryWatcher itemWasRemovedAtPath:(NSString *)path;
@end
NS_ASSUME_NONNULL_END

NS_ASSUME_NONNULL_BEGIN
@interface BBUDirectoryWatcher : NSObject
- (id)initWithURL:(NSURL *)url;
@property (nonatomic, weak, nullable) id<BBUDirectoryWatcherDelegate> delegate;
@end
NS_ASSUME_NONNULL_END

Install with Carthage.