From: <ho...@us...> - 2017-05-16 21:02:55
|
Revision: 9421 http://sourceforge.net/p/skim-app/code/9421 Author: hofman Date: 2017-05-16 21:02:53 +0000 (Tue, 16 May 2017) Log Message: ----------- no need to cancel requests that are not used anymore Modified Paths: -------------- trunk/SKMainWindowController.m Modified: trunk/SKMainWindowController.m =================================================================== --- trunk/SKMainWindowController.m 2017-05-16 20:59:31 UTC (rev 9420) +++ trunk/SKMainWindowController.m 2017-05-16 21:02:53 UTC (rev 9421) @@ -1101,8 +1101,6 @@ - (void)removeAllObjectsFromThumbnails { if ([thumbnails count]) { - // cancel all delayed perform requests for makeImageForThumbnail: - [[self class] cancelPreviousPerformRequestsWithTarget:self]; NSIndexSet *indexes = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [thumbnails count])]; [self willChange:NSKeyValueChangeRemoval valuesAtIndexes:indexes forKey:THUMBNAILS_KEY]; [thumbnails removeAllObjects]; @@ -2563,9 +2561,6 @@ } - (void)resetThumbnails { - // cancel all delayed perform requests for makeImageForThumbnail: - for (SKThumbnail *tn in thumbnails) - [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(makeImageForThumbnail:) object:tn]; [self willChangeValueForKey:THUMBNAILS_KEY]; [thumbnails removeAllObjects]; if ([pageLabels count] > 0) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |