Skip navigation.
 
mlRe: make c function in objc-class know about instance?
FROM : Scott Ribe
DATE : Sun Nov 25 17:35:03 2007

Your callback function _ought_ to take a void* parameter, which you are able
to pass in when you set up the callback, so that you can use it to pass
through whatever data you want, such as the pointer to the Obj-C instance,
and cast it back to the proper value when you get it. If the library does
not do that, then it's a broken design.

--
Scott Ribe
<email_removed>
http://www.killerbytes.com/
(303) 722-0567 voice

Related mailsAuthorDate
mlmake c function in objc-class know about instance? maximilian marcoll Dec 30, 13:28
mlRe: make c function in objc-class know about instance? Gurmit Teotia Dec 30, 13:55
mlRe: make c function in objc-class know about instance? Philip Q Dec 30, 14:15
mlRe: make c function in objc-class know about instance? Shawn Erickson Dec 30, 17:17
mlRe: make c function in objc-class know about instance? maximilian marcoll Dec 30, 18:40
mlRe: make c function in objc-class know about instance? Scott Ribe Nov 25, 17:35