Revision: 14546
          http://sourceforge.net/p/skim-app/code/14546
Author:   hofman
Date:     2024-10-11 14:13:36 +0000 (Fri, 11 Oct 2024)
Log Message:
-----------
use setValue:forKey: for undo

Modified Paths:
--------------
    trunk/SKPresentationOptionsSheetController.m

Modified: trunk/SKPresentationOptionsSheetController.m
===================================================================
--- trunk/SKPresentationOptionsSheetController.m        2024-10-11 13:46:06 UTC 
(rev 14545)
+++ trunk/SKPresentationOptionsSheetController.m        2024-10-11 14:13:36 UTC 
(rev 14546)
@@ -499,10 +499,6 @@
     }
 }
 
-- (void)setValue:(id)value forKey:(NSString *)key 
ofTransition:(SKLabeledTransitionInfo *)info {
-    [info setValue:value forKey:key];
-}
-
 - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object 
change:(NSDictionary *)change context:(void *)context {
     if (context == &SKTransitionPropertiesObservationContext) {
         id newValue = [change objectForKey:NSKeyValueChangeNewKey];
@@ -522,7 +518,7 @@
             [changedTransitions addObject:object];
         }
         
-        [[[self undoManager] prepareWithInvocationTarget:self] 
setValue:oldValue forKey:keyPath ofTransition:object];
+        [[[self undoManager] prepareWithInvocationTarget:object] 
setValue:oldValue forKey:keyPath];
     } else {
         [super observeValueForKeyPath:keyPath ofObject:object change:change 
context:context];
     }

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

Reply via email to