File: DataTree.h

package info (click to toggle)
agenda.app 0.47-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,008 kB
  • sloc: objc: 8,103; makefile: 16; sh: 5
file content (20 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* 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