Hi I got some problem with NSOperation . I always got error at "self = [super init];" (already use break point to find this) it always return "Program recieved signal: EXC_BAD_ACCESS" all the time
//AddThread.h
@interface AddThread : NSOperation
{
NSString * str;
}
@property (nonatomic,retain) NSString * str;
-(id) initWithString:(NSString *) tmpStr;
@end
and for .m
//AddThread.m
#import "AddThread.h"
@implementation AddThread
@synthesize str;
- (id) initWithString:(NSString *)tmpStr
{
self = [super init];
if (self != nil)
{
self.str = tmpStr;
}
//NSLog(self);
//[super init];
return self;
}
- (void) main
{
NSLog(self.str);
}
- (void) dealloc{
[str release];
str = nil;
[super dealloc];
}
@end
well i stuck with this for while and if posssible any resources ,articles things for basic example of NSoperation?