Revision: 22541
http://sourceforge.net/p/bibdesk/svn/22541
Author: hofman
Date: 2018-08-29 12:00:00 +0000 (Wed, 29 Aug 2018)
Log Message:
-----------
implement isEqual: in tree node, otherwise it cannot be used for persistent
outline expansion state
Modified Paths:
--------------
trunk/bibdesk/BDSKTreeNode.m
Modified: trunk/bibdesk/BDSKTreeNode.m
===================================================================
--- trunk/bibdesk/BDSKTreeNode.m 2018-08-29 06:30:27 UTC (rev 22540)
+++ trunk/bibdesk/BDSKTreeNode.m 2018-08-29 12:00:00 UTC (rev 22541)
@@ -96,6 +96,20 @@
return node;
}
+- (NSDictionary *)columnValues { return columnValues; }
+
+- (BOOL)isEqual:(id)other {
+ if (self == other)
+ return YES;
+ if ([other isMemberOfClass:[self class]] == NO)
+ return NO;
+ return [columnValues isEqualToDictionary:[other columnValues]] &&
[children isEqualToArray:[other children]];
+}
+
+- (NSUInteger)hash {
+ return [columnValues hash] + 31 * [children hash];
+}
+
- (BDSKTreeNode *)parent { return parent; }
- (void)setParent:(BDSKTreeNode *)anObject;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit