Small type fixes.
This commit is contained in:
parent
f41b7813f9
commit
b4e052fc9d
@ -33,7 +33,7 @@
|
||||
|
||||
- (NSString *)description {
|
||||
|
||||
return strf( @"<%@: version=%d>", NSStringFromClass( [self class] ), self.version );
|
||||
return strf( @"<%@: version=%lu>", NSStringFromClass( [self class] ), (unsigned long)self.version );
|
||||
}
|
||||
|
||||
- (BOOL)isEqual:(id)other {
|
||||
|
@ -21,7 +21,7 @@
|
||||
@interface MPCoachmark : NSObject
|
||||
|
||||
@property(nonatomic, strong) Class coachedClass;
|
||||
@property(nonatomic) int coachedVersion;
|
||||
@property(nonatomic) NSInteger coachedVersion;
|
||||
@property(nonatomic) BOOL coached;
|
||||
|
||||
+ (instancetype)coachmarkForClass:(Class)class version:(NSInteger)version;
|
||||
|
@ -42,12 +42,12 @@
|
||||
|
||||
- (BOOL)coached {
|
||||
|
||||
return [[NSUserDefaults standardUserDefaults] boolForKey:strf( @"%@.%d.coached", self.coachedClass, self.coachedVersion )];
|
||||
return [[NSUserDefaults standardUserDefaults] boolForKey:strf( @"%@.%ld.coached", self.coachedClass, (long)self.coachedVersion )];
|
||||
}
|
||||
|
||||
- (void)setCoached:(BOOL)coached {
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setBool:coached forKey:strf( @"%@.%d.coached", self.coachedClass, self.coachedVersion )];
|
||||
[[NSUserDefaults standardUserDefaults] setBool:coached forKey:strf( @"%@.%ld.coached", self.coachedClass, (long)self.coachedVersion )];
|
||||
}
|
||||
|
||||
@end
|
||||
|
@ -128,7 +128,7 @@
|
||||
NSString *siteName = self.siteField.text;
|
||||
MPElementType siteType = [self siteType];
|
||||
NSUInteger siteCounter = (NSUInteger)self.counterStepper.value;
|
||||
self.counterLabel.text = strf( @"%d", siteCounter );
|
||||
self.counterLabel.text = strf( @"%lu", (unsigned long)siteCounter );
|
||||
|
||||
self.passwordLabel.text = nil;
|
||||
[self.activity startAnimating];
|
||||
|
Loading…
Reference in New Issue
Block a user