aboutsummaryrefslogtreecommitdiff
path: root/UnitTesting/GTMAppKit+UnitTesting.m
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2012-07-24 20:30:18 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2012-07-24 20:30:18 +0000
commitc980db4e60639ce7ae9443195a4f9b2b4b449351 (patch)
treea75513a764a370721b3e04faa084f100ac559de0 /UnitTesting/GTMAppKit+UnitTesting.m
parentba6b64fef26412fd664e22862d10d636194f8c75 (diff)
[Author: dmaclach]
Clean up all of our format string issues amongst some other fun stuff. R=thomasvl DELTA=167 (90 added, 8 deleted, 69 changed)
Diffstat (limited to 'UnitTesting/GTMAppKit+UnitTesting.m')
-rw-r--r--UnitTesting/GTMAppKit+UnitTesting.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/UnitTesting/GTMAppKit+UnitTesting.m b/UnitTesting/GTMAppKit+UnitTesting.m
index 8bca7ca..02e0e30 100644
--- a/UnitTesting/GTMAppKit+UnitTesting.m
+++ b/UnitTesting/GTMAppKit+UnitTesting.m
@@ -321,7 +321,8 @@ GTM_METHOD_CHECK(NSObject, gtm_unitTestEncodeState:);
NSToolbarItem *item = nil;
NSUInteger i = 0;
GTM_FOREACH_OBJECT(item, [self items]) {
- NSString *key = [NSString stringWithFormat:@"ToolbarItem %d", i];
+ NSString *key
+ = [NSString stringWithFormat:@"ToolbarItem %lu", (unsigned long)i];
[inCoder encodeObject:item forKey:key];
i = i + 1;
}
@@ -417,7 +418,7 @@ GTM_METHOD_CHECK(NSObject, gtm_unitTestEncodeState:);
ENCODE_NSINTEGER(inCoder, segmentCount, @"SegmentCount");
for (NSInteger i = 0; i < segmentCount; ++i) {
- NSString *key = [NSString stringWithFormat:@"Segment %d", i];
+ NSString *key = [NSString stringWithFormat:@"Segment %ld", (long)i];
[inCoder encodeObject:[self labelForSegment:i] forKey:key];
}
}
@@ -449,7 +450,8 @@ GTM_METHOD_CHECK(NSObject, gtm_unitTestEncodeState:);
for (NSUInteger i = 0; i < [objectValues count]; ++i) {
id value = [objectValues objectAtIndex:i];
if ([value isKindOfClass:[NSString class]]) {
- NSString *key = [NSString stringWithFormat:@"ComboBoxObjectValue %u", i];
+ NSString *key = [NSString stringWithFormat:@"ComboBoxObjectValue %lu",
+ (unsigned long)i];
[inCoder encodeObject:value forKey:key];
}
}