Updates for 10.5 API changes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27962 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-02-23 20:42:32 +00:00
parent 845a701069
commit 24d43481a8
138 changed files with 2094 additions and 1536 deletions

View file

@ -170,7 +170,7 @@ static Class gcClass = 0;
return [[GCDictionary allocWithZone: zone] initWithDictionary: self];
}
- (unsigned int) count
- (NSUInteger) count
{
return NSCountMapTable(_map);
}
@ -239,7 +239,7 @@ static Class gcClass = 0;
{
id keys = [dictionary keyEnumerator];
id key;
unsigned int size = ([dictionary count] * 4) / 3;
NSUInteger size = ([dictionary count] * 4) / 3;
NSZone *z = NSDefaultMallocZone();
_map = NSCreateMapTableWithZone(GCInfoMapKeyCallBacks,
@ -266,9 +266,9 @@ static Class gcClass = 0;
- (id) initWithObjects: (id*)objects
forKeys: (id*)keys
count: (unsigned int)count
count: (NSUInteger)count
{
unsigned int size = (count * 4) / 3;
NSUInteger size = (count * 4) / 3;
NSZone *z = NSDefaultMallocZone();
_map = NSCreateMapTableWithZone(GCInfoMapKeyCallBacks,
@ -368,9 +368,9 @@ static Class gcClass = 0;
return [self initWithCapacity: 0];
}
- (id) initWithCapacity: (unsigned int)aNumItems
- (id) initWithCapacity: (NSUInteger)aNumItems
{
unsigned int size = (aNumItems * 4) / 3;
NSUInteger size = (aNumItems * 4) / 3;
_map = NSCreateMapTableWithZone(GCInfoMapKeyCallBacks,
GCInfoValueCallBacks, size, [self zone]);