Skip to content

Commit 7876e28

Browse files
committedSep 26, 2013
Removed the “feature” to pass through the ignoreThisAppValidation attribute to the SRRecorderControl, because it was completely stupid, and a kludge that ended up causing trouble. You can set ignoreThisAppValidation in the SRRecorderControl directly.
1 parent 799e313 commit 7876e28

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed
 

‎SSYShortcutBackEnd.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
@property (copy) NSString* selectorName ;
1717
@property (assign) BOOL ignoreThisAppValidation ;
1818

19-
- (void)awakeWithSelectorName:(NSString*)selectorName
20-
ignoreThisAppValidation:(BOOL)ignoreThisAppValidation ;
19+
- (void)awakeWithSelectorName:(NSString*)selectorName ;
2120

2221
@end

‎SSYShortcutBackEnd.m

+1-22
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,8 @@ - (void)dealloc {
1414
[super dealloc] ;
1515
}
1616

17-
- (void)awakeFromNib {
18-
// Safely invoke super
19-
[self safelySendSuperSelector:_cmd
20-
prettyFunction:__PRETTY_FUNCTION__
21-
arguments:nil] ;
22-
23-
// Do this with a delay, in case we get -awakeFromNib before the
24-
// window containing the SRRecorderControl. In that case, assuming
25-
// that -setIgnoreThisAppValidation is set in the window controller's
26-
// -awakeFromNib, our -ignoreThisAppValidation has not been set yet.
27-
[self performSelector:@selector(propagateIgnoreThisAppValidation)
28-
withObject:nil
29-
afterDelay:0.0] ;
30-
}
31-
32-
- (void)propagateIgnoreThisAppValidation {
33-
[recorderControl setIgnoreThisValidation:[self ignoreThisAppValidation]] ;
34-
}
35-
36-
- (void)awakeWithSelectorName:(NSString*)selectorName
37-
ignoreThisAppValidation:(BOOL)ignoreThisAppValidation {
17+
- (void)awakeWithSelectorName:(NSString*)selectorName {
3818
[self setSelectorName:selectorName] ;
39-
[self setIgnoreThisAppValidation:ignoreThisAppValidation] ;
4019
KeyCombo keyCombo = [[SSYShortcutActuator sharedActuator] keyComboForSelectorName:selectorName] ;
4120
[recorderControl setKeyCombo:keyCombo] ;
4221
}

0 commit comments

Comments
 (0)
Please sign in to comment.