Revision: 13806
http://sourceforge.net/p/skim-app/code/13806
Author: hofman
Date: 2023-11-25 15:35:21 +0000 (Sat, 25 Nov 2023)
Log Message:
-----------
fix protocol implementation
Modified Paths:
--------------
trunk/SkimNotes/SKNAgentListener.m
trunk/SkimNotes/SKNXPCAgentListenerProtocol.h
Modified: trunk/SkimNotes/SKNAgentListener.m
===================================================================
--- trunk/SkimNotes/SKNAgentListener.m 2023-11-25 15:05:14 UTC (rev 13805)
+++ trunk/SkimNotes/SKNAgentListener.m 2023-11-25 15:35:21 UTC (rev 13806)
@@ -231,25 +231,25 @@
#pragma mark SKNXPCAgentListenerProtocol
-- (void)readSkimNotesAtPath:(NSString *)aFile reply:(void (^)(NSData *))reply {
+- (void)readSkimNotesAtURL:(NSURL *)aURL reply:(void (^)(NSData *))reply {
NSError *error = nil;
- NSData *data = [[NSFileManager defaultManager] SkimNotesAtPath:aFile
error:&error];
+ NSData *data = [[NSFileManager defaultManager] SkimNotesAtPath:[aURL path]
error:&error];
if (nil == data)
fprintf(stderr, "skimnotes agent pid %d: error getting Skim notes
(%s)\n", getpid(), [[error description] UTF8String]);
reply(data);
}
-- (void)readRTFNotesAtPath:(NSString *)aFile reply:(void (^)(NSData *))reply {
+- (void)readRTFNotesAtURL:(NSURL *)aURL reply:(void (^)(NSData *))reply {
NSError *error = nil;
- NSData *data = [[NSFileManager defaultManager] SkimRTFNotesAtPath:aFile
error:&error];
+ NSData *data = [[NSFileManager defaultManager] SkimRTFNotesAtPath:[aURL
path] error:&error];
if (nil == data)
fprintf(stderr, "skimnotes agent pid %d: error getting RTF notes
(%s)\n", getpid(), [[error description] UTF8String]);
reply(data);
}
-- (void)readTextNotesAtPath:(NSString *)aFile reply:(void (^)(NSString
*))reply {
+- (void)readTextNotesAtURL:(NSURL *)aURL reply:(void (^)(NSString *))reply {
NSError *error = nil;
- NSString *string = [[NSFileManager defaultManager]
SkimTextNotesAtPath:aFile error:&error];
+ NSString *string = [[NSFileManager defaultManager]
SkimTextNotesAtPath:[aURL path] error:&error];
if (nil == string)
fprintf(stderr, "skimnotes agent pid %d: error getting text notes
(%s)\n", getpid(), [[error description] UTF8String]);
reply(string);
Modified: trunk/SkimNotes/SKNXPCAgentListenerProtocol.h
===================================================================
--- trunk/SkimNotes/SKNXPCAgentListenerProtocol.h 2023-11-25 15:05:14 UTC
(rev 13805)
+++ trunk/SkimNotes/SKNXPCAgentListenerProtocol.h 2023-11-25 15:35:21 UTC
(rev 13806)
@@ -40,6 +40,6 @@
- (void)readSkimNotesAtURL:(NSURL *)aURL reply:(void (^)(NSData *))reply;
- (void)readRTFNotesAtURL:(NSURL *)aURL reply:(void (^)(NSData *))reply;
-- (void)readTextNotesAtURL:(NSURL *)aFaURLile reply:(void (^)(NSString
*))reply;
+- (void)readTextNotesAtURL:(NSURL *)aURL reply:(void (^)(NSString *))reply;
@end
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit