2
0

Small type fixes.

This commit is contained in:
Maarten Billemont 2014-04-24 22:00:38 -04:00
parent f41b7813f9
commit b4e052fc9d
4 changed files with 5 additions and 5 deletions

View File

@ -33,7 +33,7 @@
- (NSString *)description { - (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 { - (BOOL)isEqual:(id)other {

View File

@ -21,7 +21,7 @@
@interface MPCoachmark : NSObject @interface MPCoachmark : NSObject
@property(nonatomic, strong) Class coachedClass; @property(nonatomic, strong) Class coachedClass;
@property(nonatomic) int coachedVersion; @property(nonatomic) NSInteger coachedVersion;
@property(nonatomic) BOOL coached; @property(nonatomic) BOOL coached;
+ (instancetype)coachmarkForClass:(Class)class version:(NSInteger)version; + (instancetype)coachmarkForClass:(Class)class version:(NSInteger)version;

View File

@ -42,12 +42,12 @@
- (BOOL)coached { - (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 { - (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 @end

View File

@ -128,7 +128,7 @@
NSString *siteName = self.siteField.text; NSString *siteName = self.siteField.text;
MPElementType siteType = [self siteType]; MPElementType siteType = [self siteType];
NSUInteger siteCounter = (NSUInteger)self.counterStepper.value; 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.passwordLabel.text = nil;
[self.activity startAnimating]; [self.activity startAnimating];