|
From: <ho...@us...> - 2025-07-13 08:05:31
|
Revision: 15650
http://sourceforge.net/p/skim-app/code/15650
Author: hofman
Date: 2025-07-13 08:05:29 +0000 (Sun, 13 Jul 2025)
Log Message:
-----------
currentString is not nullable
Modified Paths:
--------------
trunk/SKTextNoteEditor.h
trunk/SKTextNoteEditor.m
Modified: trunk/SKTextNoteEditor.h
===================================================================
--- trunk/SKTextNoteEditor.h 2025-07-12 14:36:03 UTC (rev 15649)
+++ trunk/SKTextNoteEditor.h 2025-07-13 08:05:29 UTC (rev 15650)
@@ -52,7 +52,7 @@
- (instancetype)initWithAnnotation:(PDFAnnotation *)anAnnotation delegate:(id<SKTextNoteEditorDelegate>)aDelegate;
-@property (nonatomic, nullable, weak, readonly) NSString *currentString;
+@property (nonatomic, weak, readonly) NSString *currentString;
- (void)startEditingWithEvent:(nullable NSEvent *)event;
- (void)endEditingWithCommit:(BOOL)commit;
Modified: trunk/SKTextNoteEditor.m
===================================================================
--- trunk/SKTextNoteEditor.m 2025-07-12 14:36:03 UTC (rev 15649)
+++ trunk/SKTextNoteEditor.m 2025-07-13 08:05:29 UTC (rev 15650)
@@ -90,7 +90,7 @@
}
- (NSString *)currentString {
- return [textView string] ?: [annotation string];
+ return [textView string] ?: [annotation string] ?: @"";
}
- (void)updateParagraphStyle {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|