mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Mostly tidying
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4465 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
19496ceb7b
commit
13a0c075e4
46 changed files with 1406 additions and 1020 deletions
|
@ -166,11 +166,10 @@ static Class NSMutableDictionary_concrete_class;
|
|||
return [self count];
|
||||
}
|
||||
|
||||
- initWithObjects: (NSArray*)objects forKeys: (NSArray*)keys
|
||||
- (id) initWithObjects: (NSArray*)objects forKeys: (NSArray*)keys
|
||||
{
|
||||
int objectCount = [objects count];
|
||||
id os[objectCount], ks[objectCount];
|
||||
int i;
|
||||
|
||||
if (objectCount != [keys count])
|
||||
{
|
||||
|
@ -465,7 +464,7 @@ compareIt(id o1, id o2, void* context)
|
|||
return (int)[o1 performSelector: f->s withObject: o2];
|
||||
}
|
||||
|
||||
- (NSArray*)keysSortedByValueUsingSelector: (SEL)comp
|
||||
- (NSArray*) keysSortedByValueUsingSelector: (SEL)comp
|
||||
{
|
||||
struct foo info;
|
||||
id k;
|
||||
|
@ -474,6 +473,7 @@ compareIt(id o1, id o2, void* context)
|
|||
info.s = comp;
|
||||
info.i = [self methodForSelector: @selector(objectForKey:)];
|
||||
k = [[self allKeys] sortedArrayUsingFunction: compareIt context: &info];
|
||||
return k;
|
||||
}
|
||||
|
||||
- (NSArray*) objectsForKeys: (NSArray*)keys notFoundMarker: (id)marker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue