X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJInputPathElement.h;h=3ad50c9bc5e183c1cd31d62800ba2333faf42d71;hp=f3f27c2f9c66b3f63578102dc3b5cd42aeb37c1b;hb=79b05c3cf1c75bc4f7078acde43aaf4215c6408a;hpb=8f3613a31e2012374e00a6973f221421e0b770f0 diff --git a/Classes/NJInputPathElement.h b/Classes/NJInputPathElement.h index f3f27c2..3ad50c9 100644 --- a/Classes/NJInputPathElement.h +++ b/Classes/NJInputPathElement.h @@ -1,14 +1,21 @@ -#import +// +// NJInputPathElement.h +// Enjoyable +// +// Created by Joe Wreschnig on 3/13/13. +// +// +@interface NJInputPathElement : NSObject -@protocol NJInputPathElement +- (id)initWithName:(NSString *)name + did:(NSString *)did + base:(NJInputPathElement *)base; -// TODO: It's time this became a real base class rather than a protocol. +@property (nonatomic, weak) NJInputPathElement *base; +@property (nonatomic, copy) NSString *name; +@property (nonatomic, readonly) NSString *uid; +@property (nonatomic, strong) NSArray *children; -- (NSArray *)children; -- (id ) base; -- (NSString *)name; -- (NSString *)uid; - -- (id )elementForUID:(NSString *)uid; +- (NJInputPathElement *)elementForUID:(NSString *)uid; @end