Explicitely cast NSIntegers to avoid warning and problems

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@37916 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2014-05-28 07:02:41 +00:00
parent 4ff11ce871
commit 7d0d96a1bc
5 changed files with 17 additions and 9 deletions

View file

@ -1,3 +1,11 @@
2014-05-28 Riccardo Mottola <rm@gnu.org>
* GormCore/GormClassInspector.m
* GormCore/GormClassManager.m
* GormCore/GormFilePrefsManager.m
* GormCore/GormInspectorsManager.m
Explicitely cast NSIntegers to avoid warning and problems.
2014-05-27 03:26-EDT Gregory John Casamento <greg.casamento@gmail.com> 2014-05-27 03:26-EDT Gregory John Casamento <greg.casamento@gmail.com>
* GormCore/GormInspectorsManager.m * GormCore/GormInspectorsManager.m

View file

@ -658,9 +658,9 @@ objectValueForTableColumn: (NSTableColumn *)tc
actionsCount = [[classManager allActionsForClassNamed: currentClass] count]; actionsCount = [[classManager allActionsForClassNamed: currentClass] count];
item = [tabView tabViewItemAtIndex: 1]; // actions; item = [tabView tabViewItemAtIndex: 1]; // actions;
[item setLabel: [NSString stringWithFormat: @"Actions (%ld)",actionsCount]]; [item setLabel: [NSString stringWithFormat: @"Actions (%ld)",(long)actionsCount]];
item = [tabView tabViewItemAtIndex: 0]; // outlets; item = [tabView tabViewItemAtIndex: 0]; // outlets;
[item setLabel: [NSString stringWithFormat: @"Outlets (%ld)",outletsCount]]; [item setLabel: [NSString stringWithFormat: @"Outlets (%ld)",(long)outletsCount]];
[tabView setNeedsDisplay: YES]; [tabView setNeedsDisplay: YES];
[self _refreshView]; [self _refreshView];

View file

@ -175,7 +175,7 @@
while([classInformation objectForKey: search]) while([classInformation objectForKey: search])
{ {
search = [name stringByAppendingString: [NSString stringWithFormat: @"%ld",i++]]; search = [name stringByAppendingString: [NSString stringWithFormat: @"%ld",(long)i++]];
} }
return search; return search;
@ -224,7 +224,7 @@
while ([combined containsObject: search]) while ([combined containsObject: search])
{ {
new = [newAction stringByAppendingFormat: @"%ld", i++]; new = [newAction stringByAppendingFormat: @"%ld", (long)i++];
search = [new stringByAppendingString: @":"]; search = [new stringByAppendingString: @":"];
} }
@ -241,7 +241,7 @@
while ([combined containsObject: new]) while ([combined containsObject: new])
{ {
new = [newOutlet stringByAppendingFormat: @"%ld", i++]; new = [newOutlet stringByAppendingFormat: @"%ld", (long)i++];
} }
[self addOutlet: new forClassNamed: name]; [self addOutlet: new forClassNamed: name];

View file

@ -56,7 +56,7 @@ NSString *formatVersion(NSInteger version)
v -= (bit8 * min); v -= (bit8 * min);
pch = v; pch = v;
return [NSString stringWithFormat: @"%ld.%ld.%ld / %ld",maj,min,pch,version]; return [NSString stringWithFormat: @"%ld.%ld.%ld / %ld",(long)maj,(long)min,(long)pch,(long)version];
} }
@ -109,7 +109,7 @@ NSString *formatVersion(NSInteger version)
Class cls = NSClassFromString(className); Class cls = NSClassFromString(className);
NSDictionary *info = [currentProfile objectForKey: className]; NSDictionary *info = [currentProfile objectForKey: className];
NSInteger v = [[info objectForKey: @"version"] intValue]; NSInteger v = [[info objectForKey: @"version"] intValue];
NSDebugLog(@"Setting version %ld for class %@",v,className); NSDebugLog(@"Setting version %ld for class %@",(long)v,className);
[cls setVersion: v]; [cls setVersion: v];
} }
} }
@ -127,7 +127,7 @@ NSString *formatVersion(NSInteger version)
Class cls = NSClassFromString(className); Class cls = NSClassFromString(className);
NSDictionary *info = [latestVersion objectForKey: className]; NSDictionary *info = [latestVersion objectForKey: className];
NSInteger v = [[info objectForKey: @"version"] intValue]; NSInteger v = [[info objectForKey: @"version"] intValue];
NSDebugLog(@"Setting version %ld for class %@",v,className); NSDebugLog(@"Setting version %ld for class %@",(long)v,className);
[cls setVersion: v]; [cls setVersion: v];
} }
} }

View file

@ -262,7 +262,7 @@
item = (NSMenuItem *)[popup itemAtIndex: index]; item = (NSMenuItem *)[popup itemAtIndex: index];
[item setTarget: self]; [item setTarget: self];
[item setAction: @selector(setCurrentInspector:)]; [item setAction: @selector(setCurrentInspector:)];
[item setKeyEquivalent: [NSString stringWithFormat: @"%ld",tag]]; [item setKeyEquivalent: [NSString stringWithFormat: @"%ld",(long)tag]];
[item setTag: tag]; [item setTag: tag];
index++; index++;
} }