Revision: 24027
http://sourceforge.net/p/bibdesk/svn/24027
Author: hofman
Date: 2019-07-15 14:54:18 +0000 (Mon, 15 Jul 2019)
Log Message:
-----------
use properties for BDSKTeXTask
Modified Paths:
--------------
trunk/bibdesk/BDSKTeXTask.h
trunk/bibdesk/BDSKTeXTask.m
Modified: trunk/bibdesk/BDSKTeXTask.h
===================================================================
--- trunk/bibdesk/BDSKTeXTask.h 2019-07-15 14:41:50 UTC (rev 24026)
+++ trunk/bibdesk/BDSKTeXTask.h 2019-07-15 14:54:18 UTC (rev 24027)
@@ -80,20 +80,20 @@
- (void)cancel;
- (void)terminate;
-- (NSString *)logFileString;
-- (NSString *)LTBString;
-- (NSString *)LaTeXString;
-- (NSData *)PDFData;
+@property (nonatomic, readonly) NSString *logFileString;
+@property (nonatomic, readonly) NSString *LTBString;
+@property (nonatomic, readonly) NSString *LaTeXString;
+@property (nonatomic, readonly) NSData *PDFData;
-- (NSString *)logFilePath;
-- (NSString *)LTBFilePath;
-- (NSString *)LaTeXFilePath;
-- (NSString *)PDFFilePath;
+@property (nonatomic, readonly) NSString *logFilePath;
+@property (nonatomic, readonly) NSString *LTBFilePath;
+@property (nonatomic, readonly) NSString *LaTeXFilePath;
+@property (nonatomic, readonly) NSString *PDFFilePath;
-- (BOOL)hasLTB;
-- (BOOL)hasLaTeX;
-- (BOOL)hasPDFData;
+@property (nonatomic, readonly) BOOL hasLTB;
+@property (nonatomic, readonly) BOOL hasLaTeX;
+@property (nonatomic, readonly) BOOL hasPDFData;
-- (BOOL)isProcessing;
+@property (nonatomic, readonly, getter=isProcessing) BOOL processing;
@end
Modified: trunk/bibdesk/BDSKTeXTask.m
===================================================================
--- trunk/bibdesk/BDSKTeXTask.m 2019-07-15 14:41:50 UTC (rev 24026)
+++ trunk/bibdesk/BDSKTeXTask.m 2019-07-15 14:54:18 UTC (rev 24027)
@@ -60,8 +60,8 @@
NSUInteger generatedType;
}
- (id)initWithTask:(NSTask *)aTask generatedType:(NSUInteger)type;
-- (NSTask *)task;
-- (NSUInteger)generatedType;
+@property (nonatomic, readonly) NSTask *task;
+@property (nonatomic, readonly) NSUInteger generatedType;
@end
#pragma mark -
@@ -71,15 +71,15 @@
NSString *fullPathWithoutExtension;
}
- (id)initWithBasePath:(NSString *)fullPath;
-- (NSString *)baseNameWithoutExtension;
-- (NSString *)workingDirectory;
-- (NSString *)texFilePath;
-- (NSString *)bibFilePath;
-- (NSString *)bblFilePath;
-- (NSString *)pdfFilePath;
-- (NSString *)logFilePath;
-- (NSString *)blgFilePath;
-- (NSString *)auxFilePath;
+@property (nonatomic, readonly) NSString *baseNameWithoutExtension;
+@property (nonatomic, readonly) NSString *workingDirectory;
+@property (nonatomic, readonly) NSString *texFilePath;
+@property (nonatomic, readonly) NSString *bibFilePath;
+@property (nonatomic, readonly) NSString *bblFilePath;
+@property (nonatomic, readonly) NSString *pdfFilePath;
+@property (nonatomic, readonly) NSString *logFilePath;
+@property (nonatomic, readonly) NSString *blgFilePath;
+@property (nonatomic, readonly) NSString *auxFilePath;
@end
#pragma mark -
@@ -128,6 +128,8 @@
@implementation BDSKTeXTask
+@dynamic logFileString, LTBString, LaTeXString, PDFData, logFilePath,
LTBFilePath, LaTeXFilePath, PDFFilePath, hasLTB, hasLaTeX, hasPDFData,
processing;
+
+ (void)initialize
{
BDSKINITIALIZE;
@@ -584,6 +586,8 @@
@implementation BDSKTeXPath
+@dynamic baseNameWithoutExtension, workingDirectory, texFilePath, bibFilePath,
bblFilePath, pdfFilePath, logFilePath, blgFilePath, auxFilePath;
+
- (id)initWithBasePath:(NSString *)fullPath;
{
self = [super init];
@@ -617,6 +621,8 @@
@implementation BDSKTaskAndGeneratedType
+@synthesize task, generatedType;
+
- (id)init {
return [self initWithTask:nil generatedType:BDSKGeneratedNoneMask];
}
@@ -635,8 +641,4 @@
[super dealloc];
}
-- (NSTask *)task { return task; }
-
-- (NSUInteger)generatedType { return generatedType; };
-
@end
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit