objc_msgSend(object, sel_getUid("foo:bar:err:"), var, var2, errVar); If one of the variables is a float, you need to use @Ken@Ken's method, or cheat by a reinterpret-cast:
objc_msgSend(..., *(int*)&var, ...) Also, if the selector returns a float, you may need to use objc_msgSend_fpret, and if it returns a struct you must use objc_msgSend_stret. If that is a call to superclass you need to use objc_msgSendSuper2.