Revision: 4460
http://skim-app.svn.sourceforge.net/skim-app/?rev=4460&view=rev
Author: hofman
Date: 2008-08-27 12:09:30 +0000 (Wed, 27 Aug 2008)
Log Message:
-----------
Undo setting of bookmark children in controller method as SKBookmark does not
implement setChildren.
Modified Paths:
--------------
trunk/SKBookmarkController.m
Modified: trunk/SKBookmarkController.m
===================================================================
--- trunk/SKBookmarkController.m 2008-08-27 11:36:35 UTC (rev 4459)
+++ trunk/SKBookmarkController.m 2008-08-27 12:09:30 UTC (rev 4460)
@@ -496,6 +496,10 @@
}
}
+- (void)setChildren:(NSArray *)newChildren ofBookmark:(SKBookmark *)bookmark {
+ [[bookmark mutableArrayValueForKey:SKBookmarkChildrenKey]
setArray:newChildren];
+}
+
- (void)insertObjects:(NSArray *)newChildren inChildrenOfBookmark:(SKBookmark
*)bookmark atIndexes:(NSIndexSet *)indexes {
[[bookmark mutableArrayValueForKey:SKBookmarkChildrenKey]
insertObjects:newChildren atIndexes:indexes];
}
@@ -525,7 +529,7 @@
[new removeObjectsInArray:oldValue];
[self stopObservingBookmarks:old];
[self startObservingBookmarks:new];
- [[[self undoManager] prepareWithInvocationTarget:bookmark]
setChildren:oldValue];
+ [[[self undoManager] prepareWithInvocationTarget:self]
setChildren:oldValue ofBookmark:bookmark];
} else if ([keyPath isEqualToString:SKBookmarkLabelKey]) {
[[[self undoManager] prepareWithInvocationTarget:bookmark]
setLabel:oldValue];
}
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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit