Revision: 7271 http://skim-app.svn.sourceforge.net/skim-app/?rev=7271&view=rev Author: hofman Date: 2011-06-15 13:16:53 +0000 (Wed, 15 Jun 2011)
Log Message: ----------- Fix check for dependent keys Modified Paths: -------------- trunk/SKDownload.m trunk/SKDownloadController.m Modified: trunk/SKDownload.m =================================================================== --- trunk/SKDownload.m 2011-06-15 12:24:05 UTC (rev 7270) +++ trunk/SKDownload.m 2011-06-15 13:16:53 UTC (rev 7271) @@ -82,7 +82,7 @@ + (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key { NSSet *set = [super keyPathsForValuesAffectingValueForKey:key]; - if ([keysAffectedByDownloadStatus containsObject:key]) + if ([keysAffectedByFilePath containsObject:key]) return [set count] > 0 ? [set setByAddingObjectsFromSet:filePathSet] : filePathSet; if ([keysAffectedByDownloadStatus containsObject:key]) return [set count] > 0 ? [set setByAddingObjectsFromSet:downloadStatusSet] : downloadStatusSet; Modified: trunk/SKDownloadController.m =================================================================== --- trunk/SKDownloadController.m 2011-06-15 12:24:05 UTC (rev 7270) +++ trunk/SKDownloadController.m 2011-06-15 13:16:53 UTC (rev 7271) @@ -348,8 +348,6 @@ [[self window] close]; } } - // binding does not notice the change to canRemove - [clearButton setEnabled:[[downloads valueForKeyPath:@"@max.canRemove"] boolValue]]; } #pragma mark NSTableViewDataSource This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit