• 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
Re: make c function in objc-class know about instance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: NSTableView and Empty Selection
  • Next by Date: NSConditionLock console message: "unlocked from thread which did not lock it"
  • Previous by thread: Re: NSTableView and Empty Selection
  • Next by thread: NSConditionLock console message: "unlocked from thread which did not lock it"
  • Index(es):
    • Date
    • Thread