Revision: 2831 http://skim-app.svn.sourceforge.net/skim-app/?rev=2831&view=rev Author: hofman Date: 2007-09-04 13:50:18 -0700 (Tue, 04 Sep 2007)
Log Message: ----------- Use simple change notifications rather than indexed one, as we replace all items. Modified Paths: -------------- trunk/SKMainWindowController.m Modified: trunk/SKMainWindowController.m =================================================================== --- trunk/SKMainWindowController.m 2007-09-04 18:43:49 UTC (rev 2830) +++ trunk/SKMainWindowController.m 2007-09-04 20:50:18 UTC (rev 2831) @@ -3760,7 +3760,7 @@ - (void)resetThumbnails { unsigned i, count = [pageLabels count]; - [self willChange:NSKeyValueChangeReplacement valuesAtIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, count)] forKey:@"thumbnails"]; + [self willChangeValueForKey:@"thumbnails"]; [thumbnails removeAllObjects]; if (count) { PDFPage *emptyPage = [[[PDFPage alloc] init] autorelease]; @@ -3782,7 +3782,7 @@ [thumbnail release]; } } - [self didChange:NSKeyValueChangeReplacement valuesAtIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, count)] forKey:@"thumbnails"]; + [self didChangeValueForKey:@"thumbnails"]; [self allThumbnailsNeedUpdate]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit