Revision: 16556
http://sourceforge.net/p/skim-app/code/16556
Author: hofman
Date: 2026-09-27 21:51:39 +0000 (Sun, 27 Sep 2026)
Log Message:
-----------
no need to separately init widget annotations
Modified Paths:
--------------
trunk/SKNotesDocument.m
Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m 2026-09-27 16:57:48 UTC (rev 16555)
+++ trunk/SKNotesDocument.m 2026-09-27 21:51:39 UTC (rev 16556)
@@ -318,18 +318,6 @@
for (NSDictionary *dict in array) {
PDFAnnotation *note = [PDFAnnotation
newSkimNoteWithProperties:dict];
- if (note == nil && [[dict objectForKey:SKNPDFAnnotationTypeKey]
isEqualToString:SKNWidgetString]) {
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wdeprecated-declarations"
- switch ([[dict objectForKey:SKNPDFAnnotationWidgetTypeKey]
integerValue]) {
- case kSKNPDFWidgetTypeText: note =
[PDFAnnotationTextWidget alloc]; break;
- case kSKNPDFWidgetTypeButton: note =
[PDFAnnotationButtonWidget alloc]; break;
- case kSKNPDFWidgetTypeChoice: note =
[PDFAnnotationChoiceWidget alloc]; break;
- default: break;
- }
-#pragma clang diagnostic pop
- note = [note initSkimNoteWithProperties:dict];
- }
if (note) {
PDFPage *page;
NSUInteger pageIndex = [[dict
objectForKey:SKNPDFAnnotationPageIndexKey] unsignedIntegerValue];
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