summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2019-05-01 12:45:28 (GMT)
committerKevin Walzer <kw@codebykevin.com>2019-05-01 12:45:28 (GMT)
commit8166c30a6eccd5b935b055cb476814a8ce2b8ed6 (patch)
tree0ee658c29f620c780637e580b9b8f8d02f48032a
parentf2e474c490d3e21f6da71c54ed1d1c621af226af (diff)
downloadtk-8166c30a6eccd5b935b055cb476814a8ce2b8ed6.zip
tk-8166c30a6eccd5b935b055cb476814a8ce2b8ed6.tar.gz
tk-8166c30a6eccd5b935b055cb476814a8ce2b8ed6.tar.bz2
Remove some deprecated calls
-rw-r--r--macosx/tkMacOSXServices.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/tkMacOSXServices.c b/macosx/tkMacOSXServices.c
index a928df3..3340ba7 100644
--- a/macosx/tkMacOSXServices.c
+++ b/macosx/tkMacOSXServices.c
@@ -50,7 +50,7 @@ int ServicesEventProc(
@implementation TkService
+ (void) initialize {
- NSArray *sendTypes = [NSArray arrayWithObjects:NSStringPboardType, nil];
+ NSArray *sendTypes = [NSArray arrayWithObjects:NSPasteboardTypeString, nil];
[NSApp registerServicesMenuSendTypes:sendTypes returnTypes:nil];
NSUpdateDynamicServices();
@@ -99,7 +99,7 @@ int ServicesEventProc(
NSString *writestring = [NSString stringWithUTF8String:copystring];
typesDeclared = [NSArray arrayWithObject:NSStringPboardType];
[pboard declareTypes:typesDeclared owner:nil];
- return [pboard setString:writestring forType:NSStringPboardType];
+ return [pboard setString:writestring forType:NSPasteboardTypeString];
}
@@ -127,7 +127,7 @@ int ServicesEventProc(
NSPasteboard *generalpasteboard = [NSPasteboard generalPasteboard];
[generalpasteboard declareTypes:[NSArray
arrayWithObjects:NSStringPboardType, nil] owner:nil];
- [generalpasteboard setString:pboardString forType:NSStringPboardType];
+ [generalpasteboard setString:pboardString forType: NSPasteboardTypeString];
event = ckalloc(sizeof(Tcl_Event));
event->proc = ServicesEventProc;
Tcl_QueueEvent((Tcl_Event *)event, TCL_QUEUE_TAIL);