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: "Gurmit Teotia" <email@hidden>
- Date: Sat, 30 Dec 2006 18:25:42 +0530
Create singelton object, if feasible in your case, and access it in
your C function.
On 12/30/06, maximilian marcoll <email@hidden> wrote:
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
_______________________________________________
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