Make all tabSize properties use NSUInteger as their type

This commit is contained in:
Allan Odgaard
2016-09-11 08:40:22 +02:00
parent 102f22e266
commit b9f7d23283
3 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@
@property (nonatomic) NSString* fileType; // This will update grammarName
@property (nonatomic, getter = isRecordingMacro) BOOL recordingMacro;
@property (nonatomic) BOOL softTabs;
@property (nonatomic) int32_t tabSize;
@property (nonatomic) NSUInteger tabSize;
@property (nonatomic, weak) id <OTVStatusBarDelegate> delegate;
@property (nonatomic, weak) id target;

View File

@@ -306,10 +306,10 @@ static NSMenuItem* OakCreateIndentMenuItem (NSString* title, SEL action, id targ
- (void)updateTabSettings
{
self.tabSizePopUp.title = [NSString stringWithFormat:@"%@:\u2003%d", _softTabs ? @"Soft Tabs" : @"Tab Size", _tabSize];
self.tabSizePopUp.title = [NSString stringWithFormat:@"%@:\u2003%lu", _softTabs ? @"Soft Tabs" : @"Tab Size", _tabSize];
}
- (void)setTabSize:(int32_t)size
- (void)setTabSize:(NSUInteger)size
{
_tabSize = size;
[self updateTabSettings];

View File

@@ -38,7 +38,7 @@ PUBLIC @interface OakTextView : OakView
@property (nonatomic) CGFloat fontScaleFactor;
@property (nonatomic) BOOL antiAlias;
@property (nonatomic) OTVFontSmoothing fontSmoothing;
@property (nonatomic) size_t tabSize;
@property (nonatomic) NSUInteger tabSize;
@property (nonatomic) BOOL showInvisibles;
@property (nonatomic) BOOL softWrap;
@property (nonatomic) BOOL scrollPastEnd;