I would like to perform a selector on the main thread from another thread, but the selector has multiple arguments, similar to this:
-(void) doSomethingWith:(int)
you can pass one object of NSDictionary/NSArray type having required arguments.
and accept the same type of object in your function. then, decompose the values and proceed with processing.
you have to use NSNumber for numeric values for adding them to NSarray/NSDictionary and later on in your function, you can convert them back with intValue
/floatValue
etc
best of buck.