First create a NSInvocationOperation object.
01: NSInvocationOperation* op =Next, you run the NSInvocationOperation object by queueing it into new NSOperationQueue object.
02: [[[NSInvocationOperation alloc]
03: initWithTarget:self
04: selector:@selector(myMethod:) object:data] autorelease];
01: NSOperationQueue* queue = [[NSOperationQueue alloc] init];
02: [queue setMaxConcurrentOperationCount:1];
03: [queue addOperation:op];