I've followed a few tutorials and I cant seem to adapt them to my needs.
Simply I have a manager objects that returns a NSInvocation
to be stored and invoked at a later point in the app.
and when I run the application, my method signature is null and even trying to assign a NSInvocation
from a getter is causing a SIGABRT
.
@interface Cars : NSObject
+ (NSArray *)all;
@end
cars all method just returns an array "1","2","3","4". and in my object manager I do this:
- (NSInvocation *) cars_ALL {
NSMethodSignature *ca = [Cars instanceMethodSignatureForSelector:@selector(all)];
NSLog(@"%@", ca);
return [NSInvocation invocationWithMethodSignature:ca];
}
and I call it like this:
NSInvocation *cinv = [myObjectManager cars_ALL];
thats it, im not even up to invoking or assigning the target etc of the invocation. anything I try just doesn't work out.