Revision: 14936 http://sourceforge.net/p/skim-app/code/14936 Author: hofman Date: 2025-03-04 16:56:56 +0000 (Tue, 04 Mar 2025) Log Message: ----------- make sure text is nonnull
Modified Paths: -------------- trunk/SKTextFieldSheetController.h trunk/SKTextFieldSheetController.m Modified: trunk/SKTextFieldSheetController.h =================================================================== --- trunk/SKTextFieldSheetController.h 2025-03-04 16:47:34 UTC (rev 14935) +++ trunk/SKTextFieldSheetController.h 2025-03-04 16:56:56 UTC (rev 14936) @@ -50,7 +50,7 @@ @property (nonatomic, nullable, strong) IBOutlet NSTextField *textField, *informativeTextField; @property (nonatomic, nullable, strong) IBOutlet NSButton *okButton, *cancelButton; @property (nonatomic, strong) NSString *stringValue; -@property (nonatomic, nullable, strong) NSString *informativeText; +@property (nonatomic, strong) NSString *informativeText; @end Modified: trunk/SKTextFieldSheetController.m =================================================================== --- trunk/SKTextFieldSheetController.m 2025-03-04 16:47:34 UTC (rev 14935) +++ trunk/SKTextFieldSheetController.m 2025-03-04 16:56:56 UTC (rev 14936) @@ -52,7 +52,7 @@ } - (NSString *)stringValue { - return [[self textField] stringValue]; + return [[self textField] stringValue] ?: @""; } - (void)setStringValue:(NSString *)string { @@ -60,7 +60,7 @@ } - (NSString *)informativeText { - return [informativeTextField stringValue]; + return [informativeTextField stringValue] ?: @""; } - (void)setInformativeText:(NSString *)string { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit