diff options
author | Abhi Beckert <abhi@abhibeckert.com> | 2016-03-04 17:46:00 +1000 |
---|---|---|
committer | Abhi Beckert <abhi@abhibeckert.com> | 2016-03-04 17:46:00 +1000 |
commit | 67f1ef6e43027380cbdc976115164fbeee1c2dc2 (patch) | |
tree | 740841293c4dba77d8805ce2324f8449ad8f9821 /Source | |
parent | 0a7dcf0abf1e5f0f7d5b03141c6f22f210de8142 (diff) | |
download | sequelpro-67f1ef6e43027380cbdc976115164fbeee1c2dc2.tar.gz sequelpro-67f1ef6e43027380cbdc976115164fbeee1c2dc2.tar.bz2 sequelpro-67f1ef6e43027380cbdc976115164fbeee1c2dc2.zip |
Comment out debug code for #2297
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPObjectAdditions.m | 71 |
1 files changed, 36 insertions, 35 deletions
diff --git a/Source/SPObjectAdditions.m b/Source/SPObjectAdditions.m index bf8210ea..9dfe8559 100644 --- a/Source/SPObjectAdditions.m +++ b/Source/SPObjectAdditions.m @@ -51,38 +51,39 @@ @end -#pragma mark - - -@interface NSAlert (ApplePrivate) - -- (IBAction)buttonPressed:(id)sender; - -@end - -@implementation NSAlert (SPAlertDebug) - -+ (void)load -{ - static dispatch_once_t onceToken; - - dispatch_once(&onceToken, ^{ - Class alertClass = [self class]; - - SEL orig = @selector(buttonPressed:); - SEL exch = @selector(sp_buttonPressed:); - - Method origM = class_getInstanceMethod(alertClass, orig); - Method exchM = class_getInstanceMethod(alertClass, exch); - - method_exchangeImplementations(origM, exchM); - }); -} - -- (IBAction)sp_buttonPressed:(id)obj -{ - NSLog(@"%s of %@ title=\n%@\ntext=\n%@",__func__,self,[self messageText],[self informativeText]); - - [self sp_buttonPressed:obj]; -} - -@end +// method swizzling to try and reproduce #2297 +//#pragma mark - +// +//@interface NSAlert (ApplePrivate) +// +//- (IBAction)buttonPressed:(id)sender; +// +//@end +// +//@implementation NSAlert (SPAlertDebug) +// +//+ (void)load +//{ +// static dispatch_once_t onceToken; +// +// dispatch_once(&onceToken, ^{ +// Class alertClass = [self class]; +// +// SEL orig = @selector(buttonPressed:); +// SEL exch = @selector(sp_buttonPressed:); +// +// Method origM = class_getInstanceMethod(alertClass, orig); +// Method exchM = class_getInstanceMethod(alertClass, exch); +// +// method_exchangeImplementations(origM, exchM); +// }); +//} +// +//- (IBAction)sp_buttonPressed:(id)obj +//{ +// NSLog(@"%s of %@ title=\n%@\ntext=\n%@",__func__,self,[self messageText],[self informativeText]); +// +// [self sp_buttonPressed:obj]; +//} +// +//@end |