Revision: 13994
http://sourceforge.net/p/skim-app/code/13994
Author: hofman
Date: 2023-12-26 09:48:55 +0000 (Tue, 26 Dec 2023)
Log Message:
-----------
no need to have KVO notifications for pageLabels, as it is not even a property
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2023-12-26 09:43:29 UTC (rev 13993)
+++ trunk/SKMainWindowController.m 2023-12-26 09:48:55 UTC (rev 13994)
@@ -119,7 +119,6 @@
#define MAX_PAGE_COLUMN_WIDTH 100.0
#define MAX_MIN_COLUMN_WIDTH 100.0
-#define PAGELABELS_KEY @"pageLabels"
#define SEARCHRESULTS_KEY @"searchResults"
#define GROUPEDSEARCHRESULTS_KEY @"groupedSearchResults"
#define NOTES_KEY @"notes"
@@ -783,9 +782,7 @@
- (void)updatePageLabelsAndOutlineForExpansionState:(NSDictionary *)info {
// update page labels, also update the size of the table columns
displaying the labels
- [self willChangeValueForKey:PAGELABELS_KEY];
pageLabels = [[[pdfView document] pageLabels] copy];
- [self didChangeValueForKey:PAGELABELS_KEY];
[self updatePageLabel];
@@ -832,9 +829,7 @@
if ([newPageLabels isEqualToArray:pageLabels])
return;
- [self willChangeValueForKey:PAGELABELS_KEY];
pageLabels = [newPageLabels copy];
- [self didChangeValueForKey:PAGELABELS_KEY];
[self updatePageLabel];
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