Hello all, in EtoileFoundation there is some splendidly convenient code to perform a given method on a whole NSArray of objects, namely the -map method. Somehow the corresponding header seems to have slipped from the umbrella-header and was the code itself was suffering from a minor bug in the way the return value was set. Both is fixed with the attached patch.
Cheers, Niels
Index: Frameworks/EtoileFoundation/Source/NSArray+map.m =================================================================== --- Frameworks/EtoileFoundation/Source/NSArray+map.m (revision 4755) +++ Frameworks/EtoileFoundation/Source/NSArray+map.m (working copy) @@ -39,7 +39,7 @@ [mappedArray addObject:mapped]; } } - [anInvocation setReturnValue:mappedArray]; + [anInvocation setReturnValue:&mappedArray]; } DEALLOC( [array release]; Index: Frameworks/EtoileFoundation/Headers/EtoileFoundation.h =================================================================== --- Frameworks/EtoileFoundation/Headers/EtoileFoundation.h (revision 4755) +++ Frameworks/EtoileFoundation/Headers/EtoileFoundation.h (working copy) @@ -45,6 +45,7 @@ #import <EtoileFoundation/UKPluginsRegistry.h> #import <EtoileFoundation/UKPushbackMessenger.h> #import <EtoileFoundation/UKThreadMessenger.h> +#import <EtoileFoundation/NSArray+map.h> #import <EtoileFoundation/NSObject+Etoile.h> #import <EtoileFoundation/NSObject+Model.h> #import <EtoileFoundation/NSIndexSet+Etoile.h>
_______________________________________________ Etoile-dev mailing list Etoile-dev@gna.org https://mail.gna.org/listinfo/etoile-dev