-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDVTPlugInCompatibilityUUIDifier.m
More file actions
26 lines (17 loc) · 1 KB
/
DVTPlugInCompatibilityUUIDifier.m
File metadata and controls
26 lines (17 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*! @brief This class loads - when Xcode decides it wants to allow this plugin to startup.
@note Please see enclosed README for important implementation details.
@discussion Theoretically, this plugin doesn't need to do ANYTHING.
The watchdog should theoretically ALWAYS be running after first installed.
This plug-in simply ensures it IS running, every time Xcode launches.
*/
@import Foundation;
extern BOOL launchWatchDog(); // Installs launch agent, etc.
@interface DVTPlugInCompatibilityUUIDifier : NSObject @end
@implementation DVTPlugInCompatibilityUUIDifier
+ (void) pluginDidLoad:(NSBundle*)me {
static dispatch_once_t tkn; dispatch_once(&tkn,^{ launchWatchDog(); });
// static id x = nil; static dispatch_once_t tkn; dispatch_once(&tkn,^{ x = self.new; });
}
//- init { return self = super.init ? launchWatchDog(), self : nil; }
@end
// NSLog(@"[%@] LOADED: %@ Error: %@", NSStringFromClass(self.class), loaded ? @"YES" : @"NO", error);