diff --git a/Clocker/Utilities/CLTableViewDataSource.h b/Clocker/Utilities/CLTableViewDataSource.h index 4983418..2b8de3b 100644 --- a/Clocker/Utilities/CLTableViewDataSource.h +++ b/Clocker/Utilities/CLTableViewDataSource.h @@ -10,6 +10,9 @@ @interface CLTableViewDataSource : NSObject +@property (assign) BOOL showReviewCell; +@property (assign) NSInteger futureSliderValue; + - (instancetype)initWithItems:(NSArray *)objects; @end diff --git a/Clocker/Utilities/CLTableViewDataSource.m b/Clocker/Utilities/CLTableViewDataSource.m index de1cefb..41d1100 100644 --- a/Clocker/Utilities/CLTableViewDataSource.m +++ b/Clocker/Utilities/CLTableViewDataSource.m @@ -20,8 +20,7 @@ NSString *const CLTimezoneCellViewID = @"timeZoneCell"; @interface CLTableViewDataSource() @property (strong) NSMutableArray *timezoneObjects; -@property (assign) BOOL showReviewCell; -@property (assign) NSInteger futureSliderValue; + @end @@ -75,6 +74,12 @@ NSString *const CLTimezoneCellViewID = @"timeZoneCell"; -(void)tableView:(NSTableView *)tableView didAddRowView:(NSTableRowView *)rowView forRow:(NSInteger)row { + + if (self.showReviewCell && row == self.timezoneObjects.count) { + return; + } + + NSNumber *theme = [[NSUserDefaults standardUserDefaults] objectForKey:CLThemeKey]; CLTimezoneCellView *cell = (CLTimezoneCellView *)[rowView viewAtColumn:0];