mirror of
https://github.com/zhigang1992/MagicalRecord.git
synced 2026-01-12 17:32:18 +08:00
Fix compile warnings once and for all :/
This commit is contained in:
@@ -31,7 +31,7 @@ NSUInteger const kMagicalRecordImportMaximumAttributeFailoverDepth = 10;
|
||||
|
||||
for (NSUInteger i = 1; i < kMagicalRecordImportMaximumAttributeFailoverDepth && value == nil; i++)
|
||||
{
|
||||
attributeName = [NSString stringWithFormat:@"%@.%u", kMagicalRecordImportAttributeKeyMapKey, i];
|
||||
attributeName = [NSString stringWithFormat:@"%@.%lu", kMagicalRecordImportAttributeKeyMapKey, (unsigned long)i];
|
||||
lookupKey = [[attributeInfo userInfo] valueForKey:attributeName];
|
||||
if (lookupKey == nil)
|
||||
{
|
||||
|
||||
@@ -118,7 +118,7 @@ static NSUInteger defaultBatchSize = kMagicalRecordDefaultBatchSize;
|
||||
}
|
||||
else
|
||||
{
|
||||
MRLog(@"Property '%@' not found in %u properties for %@", propertyName, [propDict count], NSStringFromClass(self));
|
||||
MRLog(@"Property '%@' not found in %lx properties for %@", propertyName, (unsigned long)[propDict count], NSStringFromClass(self));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ static id iCloudSetupNotificationObserver = nil;
|
||||
NSManagedObjectContext *context = (NSManagedObjectContext *)notification.object;
|
||||
if (context.insertedObjects.count > 0) {
|
||||
NSArray *insertedObjects = [[context insertedObjects] allObjects];
|
||||
MRLog(@"Context %@ is about to save. Obtaining permanent IDs for new %d inserted objects", [context MR_description], insertedObjects.count);
|
||||
MRLog(@"Context %@ is about to save. Obtaining permanent IDs for new %lu inserted objects", [context MR_description], (unsigned long)[insertedObjects count]);
|
||||
NSError *error;
|
||||
[context obtainPermanentIDsForObjects:insertedObjects error:&error];
|
||||
[MagicalRecord handleErrors:error];
|
||||
|
||||
Reference in New Issue
Block a user