Browse Source

Moving instance variables to .h files.

v1.2.4
Abhishek Banthia 8 years ago
parent
commit
9943d9ea9c
  1. 3
      Clocker/Utilities/CLTableViewDataSource.h
  2. 9
      Clocker/Utilities/CLTableViewDataSource.m

3
Clocker/Utilities/CLTableViewDataSource.h

@ -10,6 +10,9 @@
@interface CLTableViewDataSource : NSObject <NSTableViewDataSource, NSTableViewDelegate>
@property (assign) BOOL showReviewCell;
@property (assign) NSInteger futureSliderValue;
- (instancetype)initWithItems:(NSArray *)objects;
@end

9
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];

Loading…
Cancel
Save