summaryrefslogtreecommitdiff
path: root/src/nsterm.m
diff options
context:
space:
mode:
authorDaniel Martín <mardani29@yahoo.es>2020-09-18 13:36:47 +0200
committerAlan Third <alan@idiocy.org>2020-09-18 20:06:36 +0100
commit3223302aa2294d0e2a68216e84e3ee2d4ebcbee1 (patch)
treed86c6da5767284035d51447f3185342bca1dc8f6 /src/nsterm.m
parent985703d3800fb48feec44e3fd7880e9561bcbdc7 (diff)
downloademacs-3223302aa2294d0e2a68216e84e3ee2d4ebcbee1.tar.gz
Use modern constant names for the NS pasteboard
Use the same pasteboard constant names defined in ns_drag_types. (Bug#43470). * src/nsterm.m: Rename NSURLPboardType to NSPasteboardTypeURL, NSStringPboardType to NSPasteboardTypeString, and NSTabularTextPboardType to NSPasteboardTypeTabularText
Diffstat (limited to 'src/nsterm.m')
-rw-r--r--src/nsterm.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index ac467840a25..3dd915e3703 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -8363,7 +8363,7 @@ not_in_argv (NSString *arg)
while ( (file = [fenum nextObject]) )
strings = Fcons (build_string ([file UTF8String]), strings);
}
- else if ([type isEqualToString: NSURLPboardType])
+ else if ([type isEqualToString: NSPasteboardTypeURL])
{
NSURL *url = [NSURL URLFromPasteboard: pb];
if (url == nil) return NO;
@@ -8372,8 +8372,8 @@ not_in_argv (NSString *arg)
strings = list1 (build_string ([[url absoluteString] UTF8String]));
}
- else if ([type isEqualToString: NSStringPboardType]
- || [type isEqualToString: NSTabularTextPboardType])
+ else if ([type isEqualToString: NSPasteboardTypeString]
+ || [type isEqualToString: NSPasteboardTypeTabularText])
{
NSString *data;