Bumped Version. Added descriptions to autotype commands

This commit is contained in:
michael starke
2014-12-01 17:42:35 +01:00
parent 49c73afcfb
commit afb8c63d02
6 changed files with 19 additions and 4 deletions

View File

@@ -10,5 +10,4 @@
@interface MPAutotypeClear : MPAutotypeCommand @interface MPAutotypeClear : MPAutotypeCommand
@end @end

View File

@@ -12,6 +12,10 @@
@implementation MPAutotypeClear @implementation MPAutotypeClear
- (NSString *)description {
return [[self class] description];
}
- (void)execute { - (void)execute {
CGKeyCode keyCode = [MPKeyMapper keyCodeForCharacter:@"A"]; CGKeyCode keyCode = [MPKeyMapper keyCodeForCharacter:@"A"];
if(keyCode == kMPUnknownKeyCode) { if(keyCode == kMPUnknownKeyCode) {

View File

@@ -21,10 +21,14 @@
return self; return self;
} }
- (NSString *)description {
return [[NSString alloc] initWithFormat:@"%@ delay: %ld ms", [self class], _delay];
}
- (instancetype)initWithDelay:(NSUInteger)delay { - (instancetype)initWithDelay:(NSUInteger)delay {
self = [super init]; self = [super init];
if(self) { if(self) {
/* Delays longer than a minute are a bit lon */ /* Delays longer than a minute are a bit long */
_delay = MIN(60,delay); _delay = MIN(60,delay);
} }
return self; return self;

View File

@@ -31,6 +31,10 @@
return self; return self;
} }
- (NSString *)description {
return [[NSString alloc] initWithFormat:@"%@: modifierMaks:%llu keyCode:%d", [self class], self.modifierMask, self.keyCode];
}
- (void)execute { - (void)execute {
if(![self isValid]) { if(![self isValid]) {
return; // no valid command. Stop. return; // no valid command. Stop.

View File

@@ -27,6 +27,10 @@
return self; return self;
} }
- (NSString *)description {
return [[NSString alloc] initWithFormat:@"%@ paste:%@", [self class], self.pasteData];
}
- (void)appendString:(NSString *)aString { - (void)appendString:(NSString *)aString {
self.pasteData = [self.pasteData stringByAppendingString:aString]; self.pasteData = [self.pasteData stringByAppendingString:aString];
} }

View File

@@ -58,11 +58,11 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>0.4.1</string> <string>0.5</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>2537</string> <string>2542</string>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string> <string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NSHumanReadableCopyright</key> <key>NSHumanReadableCopyright</key>