Skip to content
Snippets Groups Projects
Commit d6027f83 authored by George Nachman's avatar George Nachman
Browse files

Adhoc build 3.0.20160817_171247

parent 6ec0ecde
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1604,7 +1604,20 @@ ITERM_WEAKLY_REFERENCEABLE
NSArray *stack = [NSThread callStackSymbols];
DLog(@"writeTaskImpl session=%@ encoding=%@ forceEncoding=%@ canBroadcast=%@: called from %@",
self, @(encoding), @(forceEncoding), @(canBroadcast), stack);
DLog(@"writeTaskImpl string=%@", string);
DLog(@"About to write the string...");
@try {
DLog(@"writeTaskImpl string=%@", string);
DLog(@"The class being pasted is %@", NSStringFromClass([string class]));
DLog(@"Checking if class is legit");
if ([string isKindOfClass:[NSString class]]) {
DLog(@"Seems to be a string. Converting it.");
NSData *data = [string dataUsingEncoding:NSUTF8StringEncoding];
DLog(@"As data: %@", data);
}
} @catch (NSException *exception) {
DLog(@"Caught an exception");
DLog(@"Exception is: %@", exception);
}
}
 
// check if we want to send this input to all the sessions
Loading
Loading
Loading
Loading
@@ -4748,7 +4748,16 @@ static double EuclideanDistance(NSPoint p1, NSPoint p2) {
 
if ([types containsObject:NSStringPboardType]) {
NSString *string = [pasteboard stringForType:NSStringPboardType];
DLog(@"Pasting from pasteboard %@", pasteboard);
DLog(@"The class being pasted is %@", NSStringFromClass([string class]));
DLog(@"Checking if class is legit");
if ([string isKindOfClass:[NSString class]]) {
DLog(@"Seems to be a string. Converting it.");
NSData *data = [string dataUsingEncoding:NSUTF8StringEncoding];
DLog(@"As data: %@", data);
}
if (string.length) {
DLog(@"Calling delegate");
[_delegate pasteString:string];
return YES;
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment