Codebase list agenda.app / 62359c16-21b0-45cd-bc59-cb9bfad975fe/main DataTree.h
62359c16-21b0-45cd-bc59-cb9bfad975fe/main

Tree @62359c16-21b0-45cd-bc59-cb9bfad975fe/main (Download .tar.gz)

DataTree.h @62359c16-21b0-45cd-bc59-cb9bfad975fe/mainraw · history · blame

/* emacs buffer mode hint -*- objc -*- */

#import <Foundation/Foundation.h>

@interface DataTree : NSObject
{
  NSMutableArray *_children;
  NSMutableDictionary *_attributes;
}

+ (id)dataTreeWithAttributes:(NSDictionary *)attributes;
- (void)setChildren:(NSArray *)children;
- (void)addChild:(id)child;
- (void)removeChildren;
- (NSArray *)children;
- (void)setAttributes:(NSDictionary *)attributes;
- (void)setValue:(id)value forKey:(NSString *)key;
- (id)valueForKey:(NSString *)key;
- (void)sortChildrenUsingFunction:(NSComparisonResult (*)(id, id, void *))compare context:(void *)context;
@end