And lastly if you wrap code in code tags, it's much easier to read.
+(NSString*) getImagePath:(int)selectedImage
{
return([NSString stringWithString:@"something"]);
}
@interface OpenerUtil {}
+(NSString*) getImagePath:(NSInteger)selectedImage;
@end
#import "OpenerUtil.h"
@implementation OpenerUtil
+(NSString*) getImagePath:(NSInteger)selectedImage{
return @"something";
}
@end
#import OpenerUtil.h
NSString *test = [OpenerUtil getImagePath:0];
2009-04-11 15:44:05.391 BeerOpener[581:20b] *** NSInvocation: warning: object 0x74e0 of class 'OpenerUtil' does not implement methodSignatureForSelector: -- trouble ahead
2009-04-11 15:44:05.399 BeerOpener[581:20b] *** NSInvocation: warning: object 0x74e0 of class 'OpenerUtil' does not implement doesNotRecognizeSelector: -- abort
If I move the getImagePath method to my MainView.m, it works.
I don't explicitly use NSInvocation anywhere.
I do have two timers, but even if I disable both, the problem remains.
OpenerUtil did not inherit from NSObject.