Revision: 12753
          http://sourceforge.net/p/skim-app/code/12753
Author:   hofman
Date:     2022-01-29 19:50:48 +0000 (Sat, 29 Jan 2022)
Log Message:
-----------
Can use NSSharingService class

Modified Paths:
--------------
    trunk/SKShareMenuController.m

Modified: trunk/SKShareMenuController.m
===================================================================
--- trunk/SKShareMenuController.m       2022-01-29 19:04:42 UTC (rev 12752)
+++ trunk/SKShareMenuController.m       2022-01-29 19:50:48 UTC (rev 12753)
@@ -67,7 +67,7 @@
     NSURL *fileURL = [doc fileURL];
     NSArray *services = nil;
     if (fileURL) {
-        services = [NSClassFromString(@"NSSharingService") 
sharingServicesForItems:[NSArray arrayWithObjects:fileURL, nil]];
+        services = [NSSharingService sharingServicesForItems:[NSArray 
arrayWithObjects:fileURL, nil]];
         SKAttachmentEmailer *emailer = [[[SKAttachmentEmailer alloc] init] 
autorelease];
         if (emailer && [[services valueForKey:@"title"] 
containsObject:[emailer title]] == NO && [emailer permissionToComposeMessage])
             services = services ? [services arrayByAddingObject:emailer] : 
[NSArray arrayWithObjects:emailer, nil];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to