Re: make c function in objc-class know about instance?
site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Mc2HI/no20qYX6ThmurvnlVPDorShy4tm0sMau/mtM+eKUFnB4/yB+x81hXWWIKnIaJJqFCamjEAAc7qGvq3HHM6x4gZSyagiZBauKyB4mlZ93DL+6Sho1VYDeRrINm6LvyVIiyNVPwfE06h/TLeVw3wm2EV56x6iPK0Pfjp92M= Create singelton object, if feasible in your case, and access it in your C function. 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/gurmit.teotia%40gmail.com This email sent to gurmit.teotia@gmail.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... On 12/30/06, maximilian marcoll <mail@maximilianmarcoll.de> wrote: This email sent to site_archiver@lists.apple.com
participants (1)
-
Gurmit Teotia