Revision: 14529
http://sourceforge.net/p/skim-app/code/14529
Author: hofman
Date: 2024-10-07 22:18:31 +0000 (Mon, 07 Oct 2024)
Log Message:
-----------
Properties are dynamic. Avoid local variable with same name as argument.
Modified Paths:
--------------
trunk/SKPresentationOptionsSheetController.m
trunk/SKTransitionInfo.m
Modified: trunk/SKPresentationOptionsSheetController.m
===================================================================
--- trunk/SKPresentationOptionsSheetController.m 2024-10-07 15:57:18 UTC
(rev 14528)
+++ trunk/SKPresentationOptionsSheetController.m 2024-10-07 22:18:31 UTC
(rev 14529)
@@ -593,11 +593,10 @@
if (operation == NSTableViewDropOn) {
NSArray *infos = [pboard readObjectsForClasses:@[[SKTransitionInfo
class]] options:@{}];
if ([infos count] > 0) {
- SKTransitionInfo *info = [infos objectAtIndex:0];
if (row == -1)
- [transitions setValue:info forKey:INFO_KEY];
+ [transitions setValue:[infos firstObject] forKey:INFO_KEY];
else
- [[transitions objectAtIndex:row] setInfo:info];
+ [[transitions objectAtIndex:row] setInfo:[infos firstObject]];
return YES;
}
}
Modified: trunk/SKTransitionInfo.m
===================================================================
--- trunk/SKTransitionInfo.m 2024-10-07 15:57:18 UTC (rev 14528)
+++ trunk/SKTransitionInfo.m 2024-10-07 22:18:31 UTC (rev 14529)
@@ -213,7 +213,8 @@
@implementation SKLabeledTransitionInfo
-@synthesize thumbnail, toThumbnail, info, label;
+@synthesize thumbnail, toThumbnail;
+@dynamic label, info;
+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
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