• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
make c function in objc-class know about instance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: make c function in objc-class know about instance?
      • From: Shawn Erickson <email@hidden>
    • Re: make c function in objc-class know about instance?
      • From: "Philip Q" <email@hidden>
    • Re: make c function in objc-class know about instance?
      • From: "Gurmit Teotia" <email@hidden>
  • Prev by Date: Sync Services
  • Next by Date: Re: make c function in objc-class know about instance?
  • Previous by thread: Sync Services
  • Next by thread: Re: make c function in objc-class know about instance?
  • Index(es):
    • Date
    • Thread