• 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: C callback function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C callback function


  • Subject: Re: C callback function
  • From: Andy Lee <email@hidden>
  • Date: Sat, 3 Mar 2007 01:48:49 -0500

On Mar 3, 2007, at 1:44 AM, Andy Lee wrote:
How about having the object instance be an argument to the callback function? The object can have accessor methods for the instance variable in question, and the callback function can invoke those accessor methods.

Sherm and Bill beat me to it. I'll just add that you can send Objective-C messages inside your C function, in case you didn't know that.


--Andy


_______________________________________________

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


References: 
 >C callback function (From: Guy Meyer <email@hidden>)
 >Re: C callback function (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: C callback function
  • Next by Date: NSUnionRect
  • Previous by thread: Re: C callback function
  • Next by thread: Subclass of NSMutableDictionary hanging
  • Index(es):
    • Date
    • Thread