mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Kind of starting from scratch.
Recreated the project as an xcode 4 project. Key Bindings are working and reloading. Got rid of everything that wasn't being used right now.
This commit is contained in:
49
Atom/UKKQueue/UKFNSubscribeFileWatcher.h
Normal file
49
Atom/UKKQueue/UKFNSubscribeFileWatcher.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/* =============================================================================
|
||||
FILE: UKFNSubscribeFileWatcher.m
|
||||
PROJECT: Filie
|
||||
|
||||
COPYRIGHT: (c) 2005 M. Uli Kusterer, all rights reserved.
|
||||
|
||||
AUTHORS: M. Uli Kusterer - UK
|
||||
|
||||
LICENSES: MIT License
|
||||
|
||||
REVISIONS:
|
||||
2006-03-13 UK Commented, added singleton.
|
||||
2005-03-02 UK Created.
|
||||
========================================================================== */
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Headers:
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import "UKFileWatcher.h"
|
||||
#import <Carbon/Carbon.h>
|
||||
|
||||
/*
|
||||
NOTE: FNSubscribe has a built-in delay: If your application is in the
|
||||
background while the changes happen, all notifications will be queued up
|
||||
and sent to your app at once the moment it is brought to front again. If
|
||||
your app really needs to do live updates in the background, use a KQueue
|
||||
instead.
|
||||
*/
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Class declaration:
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
@interface UKFNSubscribeFileWatcher : NSObject <UKFileWatcher>
|
||||
{
|
||||
id delegate; // Delegate must respond to UKFileWatcherDelegate protocol.
|
||||
NSMutableDictionary* subscriptions; // List of FNSubscription pointers in NSValues, with the pathnames as their keys.
|
||||
}
|
||||
|
||||
+(id) sharedFileWatcher;
|
||||
|
||||
// UKFileWatcher defines the methods: addPath: removePath: and delegate accessors.
|
||||
|
||||
// Private:
|
||||
-(void) sendDelegateMessage: (FNMessage)message forSubscription: (FNSubscriptionRef)subscription;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user