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

Allow more services (those that do not produce input and those that accept...

Allow more services (those that do not produce input and those that accept input) to appear in the services menu. Issue 5942
parent 811f0c5e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5583,11 +5583,11 @@ static double EuclideanDistance(NSPoint p1, NSPoint p2) {
// service stuff
- (id)validRequestorForSendType:(NSString *)sendType returnType:(NSString *)returnType
{
if (sendType != nil && [sendType isEqualToString: NSStringPboardType]) {
if (sendType == nil || [sendType isEqualToString:NSStringPboardType]) {
return self;
}
 
return ([super validRequestorForSendType: sendType returnType: returnType]);
return ([super validRequestorForSendType:sendType returnType:returnType]);
}
 
// Service
Loading
Loading
@@ -5610,9 +5610,8 @@ static double EuclideanDistance(NSPoint p1, NSPoint p2) {
}
 
// Service
- (BOOL)readSelectionFromPasteboard:(NSPasteboard *)pboard
{
return NO;
- (BOOL)readSelectionFromPasteboard:(NSPasteboard *)pboard {
return YES;
}
 
// This textview is about to be hidden behind another tab.
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