Revision: 13789
http://sourceforge.net/p/skim-app/code/13789
Author: hofman
Date: 2023-11-20 23:31:17 +0000 (Mon, 20 Nov 2023)
Log Message:
-----------
declare class properties
Modified Paths:
--------------
trunk/NSCharacterSet_SKExtensions.h
trunk/NSCharacterSet_SKExtensions.m
trunk/NSCursor_SKExtensions.h
trunk/NSView_SKExtensions.h
trunk/SKBookmarkController.h
trunk/SKColorList.h
trunk/SKDownload.h
trunk/SKDownloadController.h
trunk/SKImageToolTipWindow.h
trunk/SKInfoWindowController.h
trunk/SKLineInspector.h
trunk/SKNavigationWindow.h
trunk/SKNotesPanelController.h
trunk/SKPreferenceController.h
trunk/SKReleaseNotesController.h
trunk/SKScriptMenu.h
trunk/SKScriptMenu.m
trunk/SKTemplateManager.h
trunk/SKTransitionController.h
Modified: trunk/NSCharacterSet_SKExtensions.h
===================================================================
--- trunk/NSCharacterSet_SKExtensions.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/NSCharacterSet_SKExtensions.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -40,7 +40,7 @@
@interface NSCharacterSet (SKExtensions)
-+ (id)nonWhitespaceAndNewlineCharacterSet;
-+ (id)URLBookmarkNameAllowedCharacterSet;
-+ (id)URLGenericAllowedCharacterSet;
+@property (class, nonatomic, readonly) NSCharacterSet
*nonWhitespaceAndNewlineCharacterSet;
+@property (class, nonatomic, readonly) NSCharacterSet
*URLBookmarkNameAllowedCharacterSet;
+@property (class, nonatomic, readonly) NSCharacterSet
*URLGenericAllowedCharacterSet;
@end
Modified: trunk/NSCharacterSet_SKExtensions.m
===================================================================
--- trunk/NSCharacterSet_SKExtensions.m 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/NSCharacterSet_SKExtensions.m 2023-11-20 23:31:17 UTC (rev 13789)
@@ -41,7 +41,7 @@
@implementation NSCharacterSet (SKExtensions)
-+ (id)nonWhitespaceAndNewlineCharacterSet {
++ (NSCharacterSet *)nonWhitespaceAndNewlineCharacterSet {
static NSCharacterSet *nonWhitespaceAndNewlineCharacterSet = nil;
if (nonWhitespaceAndNewlineCharacterSet == nil)
nonWhitespaceAndNewlineCharacterSet = [[[NSCharacterSet
whitespaceAndNewlineCharacterSet] invertedSet] copy];
@@ -48,7 +48,7 @@
return nonWhitespaceAndNewlineCharacterSet;
}
-+ (id)URLBookmarkNameAllowedCharacterSet {
++ (NSCharacterSet *)URLBookmarkNameAllowedCharacterSet {
static NSCharacterSet *URLBookmarkNameAllowedCharacterSet = nil;
if (URLBookmarkNameAllowedCharacterSet == nil) {
NSMutableCharacterSet *tmpSet = [[self URLPathAllowedCharacterSet]
mutableCopy];
@@ -59,7 +59,7 @@
return URLBookmarkNameAllowedCharacterSet;
}
-+ (id)URLGenericAllowedCharacterSet {
++ (NSCharacterSet *)URLGenericAllowedCharacterSet {
static NSCharacterSet *URLGenericAllowedCharacterSet = nil;
if (URLGenericAllowedCharacterSet == nil) {
NSMutableCharacterSet *tmpSet = [[self URLPathAllowedCharacterSet]
mutableCopy];
Modified: trunk/NSCursor_SKExtensions.h
===================================================================
--- trunk/NSCursor_SKExtensions.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/NSCursor_SKExtensions.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -41,23 +41,23 @@
@interface NSCursor (SKExtensions)
-+ (NSCursor *)zoomInCursor;
-+ (NSCursor *)zoomOutCursor;
-+ (NSCursor *)resizeDiagonal45Cursor;
-+ (NSCursor *)resizeDiagonal135Cursor;
-+ (NSCursor *)cameraCursor;
-+ (NSCursor *)openHandBarCursor;
-+ (NSCursor *)closedHandBarCursor;
-+ (NSCursor *)textNoteCursor;
-+ (NSCursor *)anchoredNoteCursor;
-+ (NSCursor *)circleNoteCursor;
-+ (NSCursor *)squareNoteCursor;
-+ (NSCursor *)highlightNoteCursor;
-+ (NSCursor *)underlineNoteCursor;
-+ (NSCursor *)strikeOutNoteCursor;
-+ (NSCursor *)lineNoteCursor;
-+ (NSCursor *)inkNoteCursor;
-+ (NSCursor *)emptyCursor;
+@property (class, nonatomic, readonly) NSCursor *zoomInCursor;
+@property (class, nonatomic, readonly) NSCursor *zoomOutCursor;
+@property (class, nonatomic, readonly) NSCursor *resizeDiagonal45Cursor;
+@property (class, nonatomic, readonly) NSCursor *resizeDiagonal135Cursor;
+@property (class, nonatomic, readonly) NSCursor *cameraCursor;
+@property (class, nonatomic, readonly) NSCursor *openHandBarCursor;
+@property (class, nonatomic, readonly) NSCursor *closedHandBarCursor;
+@property (class, nonatomic, readonly) NSCursor *textNoteCursor;
+@property (class, nonatomic, readonly) NSCursor *anchoredNoteCursor;
+@property (class, nonatomic, readonly) NSCursor *circleNoteCursor;
+@property (class, nonatomic, readonly) NSCursor *squareNoteCursor;
+@property (class, nonatomic, readonly) NSCursor *highlightNoteCursor;
+@property (class, nonatomic, readonly) NSCursor *underlineNoteCursor;
+@property (class, nonatomic, readonly) NSCursor *strikeOutNoteCursor;
+@property (class, nonatomic, readonly) NSCursor *lineNoteCursor;
+@property (class, nonatomic, readonly) NSCursor *inkNoteCursor;
+@property (class, nonatomic, readonly) NSCursor *emptyCursor;
+ (NSCursor *)laserPointerCursorWithColor:(NSInteger)color;
+ (NSCursor *)safeLaserPointerCursorWithColor:(NSInteger)color;
Modified: trunk/NSView_SKExtensions.h
===================================================================
--- trunk/NSView_SKExtensions.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/NSView_SKExtensions.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -61,7 +61,7 @@
- (NSLayoutConstraint *)constraintWithFirstItem:(id)item
firstAttribute:(NSLayoutAttribute)attribute;
- (NSLayoutConstraint *)constraintWithSecondItem:(id)item
secondAttribute:(NSLayoutAttribute)attribute;
-+ (BOOL)shouldShowSlideAnimation;
-+ (BOOL)shouldShowFadeAnimation;
+@property (class, nonatomic, readonly) BOOL shouldShowSlideAnimation;
+@property (class, nonatomic, readonly) BOOL shouldShowFadeAnimation;
@end
Modified: trunk/SKBookmarkController.h
===================================================================
--- trunk/SKBookmarkController.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKBookmarkController.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -62,7 +62,7 @@
BOOL needsBeginUpdates;
}
-+ (id)sharedBookmarkController;
+@property (class, nonatomic, readonly) id sharedBookmarkController;
@property (nonatomic, retain) IBOutlet SKOutlineView *outlineView;
@property (nonatomic, retain) IBOutlet SKStatusBar *statusBar;
Modified: trunk/SKColorList.h
===================================================================
--- trunk/SKColorList.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKColorList.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -45,6 +45,6 @@
@property (nonatomic, getter=isEditable) BOOL editable;
-+ (NSColorList *)favoriteColorList;
+@property (class, nonatomic, readonly) NSColorList *favoriteColorList;
@end
Modified: trunk/SKDownload.h
===================================================================
--- trunk/SKDownload.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKDownload.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -93,9 +93,9 @@
@property (nonatomic, readonly) NSString *scriptingURL;
@property (nonatomic) SKDownloadStatus scriptingStatus;
-+ (NSImage *)deleteImage;
-+ (NSImage *)cancelImage;
-+ (NSImage *)resumeImage;
+@property (class, nonatomic, readonly) NSImage *deleteImage;
+@property (class, nonatomic, readonly) NSImage *cancelImage;
+@property (class, nonatomic, readonly) NSImage *resumeImage;
- (id)initWithURL:(NSURL *)aURL;
- (id)initWithProperties:(NSDictionary *)properties;
Modified: trunk/SKDownloadController.h
===================================================================
--- trunk/SKDownloadController.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKDownloadController.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -59,7 +59,7 @@
@property (nonatomic, retain) IBOutlet SKTableView *tableView;
@property (nonatomic, retain) IBOutlet NSButton *clearButton;
-+ (id)sharedDownloadController;
+@property (class, nonatomic, readonly) id sharedDownloadController;
- (SKDownload *)addDownloadForURL:(NSURL *)aURL;
Modified: trunk/SKImageToolTipWindow.h
===================================================================
--- trunk/SKImageToolTipWindow.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKImageToolTipWindow.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -47,7 +47,7 @@
CGFloat scale;
}
-+ (id)sharedToolTipWindow;
+@property (class, nonatomic, readonly) id sharedToolTipWindow;
// aContext can be a PDFAnnotation, PDFDestination, or PDFPage
- (void)showForImageContext:(id <SKImageToolTipContext>)aContext
scale:(CGFloat)aScale atPoint:(NSPoint)aPoint;
Modified: trunk/SKInfoWindowController.h
===================================================================
--- trunk/SKInfoWindowController.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKInfoWindowController.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -54,7 +54,7 @@
@property (nonatomic, copy) NSDictionary *info;
@property (nonatomic, readonly) NSArray *keys;
-+ (id)sharedInstance;
+@property (class, nonatomic, readonly) id sharedInstance;
- (NSDictionary *)infoForDocument:(NSDocument *)doc;
Modified: trunk/SKLineInspector.h
===================================================================
--- trunk/SKLineInspector.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKLineInspector.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -72,8 +72,8 @@
@property (nonatomic) PDFLineStyle startLineStyle, endLineStyle;
@property (nonatomic, readonly) SKLineChangeAction currentLineChangeAction;
-+ (id)sharedLineInspector;
-+ (BOOL)sharedLineInspectorExists;
+@property (class, nonatomic, readonly) id sharedLineInspector;
+@property (class, nonatomic, readonly) BOOL sharedLineInspectorExists;
- (void)setAnnotationStyle:(PDFAnnotation *)annotation;
Modified: trunk/SKNavigationWindow.h
===================================================================
--- trunk/SKNavigationWindow.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKNavigationWindow.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -74,7 +74,7 @@
@interface SKNavigationToolTipWindow : NSPanel {
NSView *view;
}
-+ (id)sharedToolTipWindow;
+@property (class, nonatomic, readonly) id sharedToolTipWindow;
- (void)showToolTip:(NSString *)toolTip forView:(NSView *)aView;
@property (nonatomic, readonly) NSView *view;
@end
Modified: trunk/SKNotesPanelController.h
===================================================================
--- trunk/SKNotesPanelController.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKNotesPanelController.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -40,8 +40,8 @@
@interface SKNotesPanelController : NSWindowController <NSWindowDelegate>
-+ (id)sharedController;
-+ (BOOL)sharedControllerExists;
+@property (class, nonatomic, readonly) id sharedController;
+@property (class, nonatomic, readonly) BOOL sharedControllerExists;
- (IBAction)addNote:(id)sender;
@end
Modified: trunk/SKPreferenceController.h
===================================================================
--- trunk/SKPreferenceController.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKPreferenceController.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -53,7 +53,7 @@
@property (nonatomic, retain) IBOutlet NSButton *resetButton, *resetAllButton;
-+ (id)sharedPrefenceController;
+@property (class, nonatomic, readonly) id sharedPrefenceController;
- (IBAction)resetAll:(id)sender;
- (IBAction)resetCurrent:(id)sender;
Modified: trunk/SKReleaseNotesController.h
===================================================================
--- trunk/SKReleaseNotesController.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKReleaseNotesController.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -44,6 +44,6 @@
@property (nonatomic, retain) IBOutlet NSTextView *textView;
-+ (id)sharedReleaseNotesController;
+@property (class, nonatomic, readonly) id sharedReleaseNotesController;
@end
Modified: trunk/SKScriptMenu.h
===================================================================
--- trunk/SKScriptMenu.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKScriptMenu.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -40,5 +40,5 @@
@interface NSApplication (SKScriptMenu)
-- (NSMenu *)scriptMenu;
+@property (nonatomic, readonly) NSMenu *scriptMenu;
@end
Modified: trunk/SKScriptMenu.m
===================================================================
--- trunk/SKScriptMenu.m 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKScriptMenu.m 2023-11-20 23:31:17 UTC (rev 13789)
@@ -58,7 +58,7 @@
@property (nonatomic, readonly) NSMenu *scriptMenu;
@property (nonatomic) BOOL menuNeedsUpdate;
-+ (id)sharedController;
+@property (class, nonatomic, readonly) id sharedController;
- (void)handleApplicationWillTerminateNotification:(NSNotification
*)notification;
- (NSArray *)directoryContentsAtURL:(NSURL *)url
recursionDepth:(NSInteger)depth;
Modified: trunk/SKTemplateManager.h
===================================================================
--- trunk/SKTemplateManager.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKTemplateManager.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -44,7 +44,7 @@
NSMutableDictionary *templateFileNames;
}
-+ (id)sharedManager;
+@property (class, nonatomic, readonly) id sharedManager;
@property (nonatomic, readonly) NSArray *customTemplateTypes;
Modified: trunk/SKTransitionController.h
===================================================================
--- trunk/SKTransitionController.h 2023-11-20 23:07:25 UTC (rev 13788)
+++ trunk/SKTransitionController.h 2023-11-20 23:31:17 UTC (rev 13789)
@@ -56,7 +56,7 @@
@property (nonatomic, copy) NSArray *pageTransitions;
@property (nonatomic) BOOL hasTransition;
-+ (NSArray *)transitionNames;
+@property (class, nonatomic, readonly) NSArray *transitionNames;
+ (NSString *)nameForStyle:(SKTransitionStyle)style;
+ (SKTransitionStyle)styleForName:(NSString *)name;
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