Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

renamed performCopee to get rid of analizer warnings

  • Loading branch information...
commit ce9f9bca8f6bbc92fc18ad89cc7788b309e0f861 1 parent d726bda
Jesse Grosjean jessegrosjean authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 QCUIElement.m
8 QCUIElement.m
View
@@ -305,7 +305,7 @@ - (BOOL)performSelectAll {
}
}
-- (NSString *)performCopy:(BOOL)trySelectAllIfFail {
+- (NSString *)performCopee:(BOOL)trySelectAllIfFail {
QCUIElement *copyMenuItem = [self menuItemWithShortCut:@"C" modifiers:@"0"]; // seems neccesary to either refresh or wait for enabled status to update.
if (copyMenuItem) {
@@ -318,7 +318,7 @@ - (NSString *)performCopy:(BOOL)trySelectAllIfFail {
if (([NSDate timeIntervalSinceReferenceDate] - startTime) > 0.3) {
if (trySelectAllIfFail) {
[self performSelectAll];
- return [self performCopy:NO];
+ return [self performCopee:NO];
} else {
return @"";
}
@@ -344,9 +344,9 @@ - (NSString *)readString {
}
}
- NSPasteboard *pboard = [NSPasteboard generalPasteboard];
+ //NSPasteboard *pboard = [NSPasteboard generalPasteboard];
//NSString *savedContents = [pboard stringForType:NSPasteboardTypeString];
- NSString *copiedContents = [self performCopy:YES];
+ NSString *copiedContents = [self performCopee:YES];
//[pboard setString:savedContents forType:NSPasteboardTypeString]; // trying to restore original clip board contents... doesn't seem to work, not sure if good idaea anyway.
return copiedContents;
}
Please sign in to comment.
Something went wrong with that request. Please try again.