Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot
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.

objc_msgSend(object, sel_getUid("foo:bar:err:"), var, var2, errVar); 

If one of the variables is a float, you need to use @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.

objc_msgSend(object, sel_getUid("foo:bar:err:"), var, var2, errVar); 

If one of the variables is a float, you need to use @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.

added 500 characters in body
Source Link
kennytm
  • 526k
  • 110
  • 1.1k
  • 1k
objc_msgSend(object, sel_getUid("foo:bar:err:"), var, var2, errVar); 

If one of the variables is a float, you need to use @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.

objc_msgSend(object, sel_getUid("foo:bar:err:"), var, var2, errVar); 
objc_msgSend(object, sel_getUid("foo:bar:err:"), var, var2, errVar); 

If one of the variables is a float, you need to use @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.

Source Link
kennytm
  • 526k
  • 110
  • 1.1k
  • 1k

objc_msgSend(object, sel_getUid("foo:bar:err:"), var, var2, errVar);