diff --git a/PBGitGraphLine.h b/PBGitGraphLine.h index 1f7ad60..5ff7806 100644 --- a/PBGitGraphLine.h +++ b/PBGitGraphLine.h @@ -11,14 +11,14 @@ @interface PBGitGraphLine : NSObject { - int upper; - int from; - int to; - int colorIndex; + char upper; + char from; + char to; + char colorIndex; } -@property(readonly) int upper, from, to, colorIndex; -- (id)initWithUpper: (int) u From: (int) f to: (int) t color: (int) c; -+ (PBGitGraphLine*) lowerLineFrom:(int) f to: (int) t color: (int) c; -+ (PBGitGraphLine*) upperLineFrom:(int) f to: (int) t color: (int) c; +@property(readonly) char upper, from, to, colorIndex; +- (id)initWithUpper: (char) u From: (char) f to: (char) t color: (char) c; ++ (PBGitGraphLine*) lowerLineFrom:(char) f to: (char) t color: (char) c; ++ (PBGitGraphLine*) upperLineFrom:(char) f to: (char) t color: (char) c; @end \ No newline at end of file diff --git a/PBGitGraphLine.m b/PBGitGraphLine.m index 85a9f8d..6435e96 100644 --- a/PBGitGraphLine.m +++ b/PBGitGraphLine.m @@ -11,7 +11,7 @@ @implementation PBGitGraphLine @synthesize upper, from, to, colorIndex; -- (id)initWithUpper: (int) u From: (int) f to: (int) t color: (int) c; +- (id)initWithUpper: (char) u From: (char) f to: (char) t color: (char) c; { upper = u; from = f; @@ -20,12 +20,12 @@ return self; } -+ (PBGitGraphLine*) lowerLineFrom:(int) f to: (int) t color: (int) c ++ (PBGitGraphLine*) lowerLineFrom:(char) f to: (char) t color: (char) c { return [[PBGitGraphLine alloc] initWithUpper:0 From:f to:t color:c]; } -+ (PBGitGraphLine*) upperLineFrom:(int) f to: (int) t color: (int) c ++ (PBGitGraphLine*) upperLineFrom:(char) f to: (char) t color: (char) c { return [[PBGitGraphLine alloc] initWithUpper:1 From:f to:t color: c]; }