Posted By

gerhardsletten on 10/18/09


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

bobbym245


How to use NSOperationQueue


 / Published in: Objective C
 

  1. @interface PersonTableViewController : UITableViewController <AddPerson> {
  2. }
  3. @end
  4.  
  5. @implementation PersonTableViewController
  6.  
  7. - (void)addPerson:(NSString *)username {
  8. NSInvocationOperation *operation = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(addPersonInBackground:) object:username];
  9. [queue addOperation:operation];
  10. [operation release];
  11. }
  12. @end

Report this snippet  

You need to login to post a comment.