Re: make c function in objc-class know about instance?
Re: make c function in objc-class know about instance?
- Subject: Re: make c function in objc-class know about instance?
- From: Scott Ribe <email@hidden>
- Date: Sun, 25 Nov 2007 09:35:03 -0700
- Thread-topic: make c function in objc-class know about instance?
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@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden