Revision: 13799
http://sourceforge.net/p/skim-app/code/13799
Author: hofman
Date: 2023-11-24 22:24:55 +0000 (Fri, 24 Nov 2023)
Log Message:
-----------
use array literal
Modified Paths:
--------------
trunk/SkimNotes/SKNSkimReader.m
trunk/SkimNotes/SKNXPCSkimReader.h
Modified: trunk/SkimNotes/SKNSkimReader.m
===================================================================
--- trunk/SkimNotes/SKNSkimReader.m 2023-11-24 22:08:16 UTC (rev 13798)
+++ trunk/SkimNotes/SKNSkimReader.m 2023-11-24 22:24:55 UTC (rev 13799)
@@ -118,7 +118,7 @@
NSTask *task = [[NSTask alloc] init];
[task setLaunchPath:launchPath];
- [task setArguments:[NSArray arrayWithObjects:@"agent", [self
agentIdentifier], nil]];
+ [task setArguments:@[@"agent", [self agentIdentifier]]];
// task will print the identifier to standard output; we don't care
about it, since we specified it
[task setStandardOutput:[NSFileHandle fileHandleWithNullDevice]];
Modified: trunk/SkimNotes/SKNXPCSkimReader.h
===================================================================
--- trunk/SkimNotes/SKNXPCSkimReader.h 2023-11-24 22:08:16 UTC (rev 13798)
+++ trunk/SkimNotes/SKNXPCSkimReader.h 2023-11-24 22:24:55 UTC (rev 13799)
@@ -46,7 +46,7 @@
BOOL synchronous;
}
-+ (id)sharedReader;
+@property (class, nonatomic, readonly) id sharedReader;
// this should only be set before any of the following calls is made
@property (nonatomic, retain) NSString *agentIdentifier;
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