• 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: Passing C Style Function Callbacks in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing C Style Function Callbacks in Cocoa


  • Subject: Re: Passing C Style Function Callbacks in Cocoa
  • From: Vince Ackerman <email@hidden>
  • Date: Fri, 5 Mar 2004 08:09:18 -0800

To clarify, this is the C style function I need to call from inside a
method in myObj. I would like to replace the function pointer
setStepBoundCB to call back a method of myObj instead. Is this
possible?


Error = TStep_boundCallbackSet( tStepper, setStepBoundCB);


It calls-back the following function which is declared outside myObj.

DeviceError setStepBoundCB( TStepper* tStepper, bool bound)
{

// Set an instance variable of myObj here
;

}

Thanks

Vince
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Passing C Style Function Callbacks in Cocoa (From: Vince Ackerman <email@hidden>)

  • Prev by Date: Re: Capture "Space" key event
  • Next by Date: Re: Passing C Style Function Callbacks in Cocoa
  • Previous by thread: Passing C Style Function Callbacks in Cocoa
  • Next by thread: Re: Passing C Style Function Callbacks in Cocoa
  • Index(es):
    • Date
    • Thread