make c function in objc-class know about instance?
make c function in objc-class know about instance?
- Subject: make c function in objc-class know about instance?
- From: maximilian marcoll <email@hidden>
- Date: Sat, 30 Dec 2006 13:28:46 +0100
hi!
there must be a simple solution, but i just can't see it...
i'm using some library code which is calling a callback function i
declared in my class interface.
now my problem is that the callback function, which is a c-function,
doesn't even know self.
i need to declare the callback as a c function, but i want the
callback function to know about the object.
(the framework sends strings to my callback function, and i want to
send them to a textView object.
but i don't have access to the textView object in the callback
function.)
i'm lost.
any help would be really cool!
max
_____________________________________________
m a x i m i l i a n m a r c o l l
http://www.maximilianmarcoll.de
d i s . p l a y c e
http://dis.playce.info
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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