Codebase list agenda.app / 8d9216a3-760e-4695-b173-83f994cee3bc/main DataTree.h
8d9216a3-760e-4695-b173-83f994cee3bc/main

Tree @8d9216a3-760e-4695-b173-83f994cee3bc/main (Download .tar.gz)

DataTree.h @8d9216a3-760e-4695-b173-83f994cee3bc/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