X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJInputPathElement.h;h=98c96fdbab4670b11aa2ebdea7224c0621bcef6f;hp=f3f27c2f9c66b3f63578102dc3b5cd42aeb37c1b;hb=58ce8f7f50f382f18e7b416eca737803af284868;hpb=8f3613a31e2012374e00a6973f221421e0b770f0 diff --git a/Classes/NJInputPathElement.h b/Classes/NJInputPathElement.h index f3f27c2..98c96fd 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 + eid:(NSString *)eid + parent:(NJInputPathElement *)parent; -// TODO: It's time this became a real base class rather than a protocol. +@property (nonatomic, weak) NJInputPathElement *parent; +@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