• 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: Cocoa Selector As CF Callback Addr?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Cocoa Selector As CF Callback Addr?


  • Subject: RE: Cocoa Selector As CF Callback Addr?
  • From: Dariusz Krzykowski <email@hidden>
  • Date: Fri, 19 Nov 2004 13:23:15 +0100

Define a c function like this:

<x-tad-smaller>void </x-tad-smaller><x-tad-smaller>MySrverIsReachableCallback(SCNetworkReachabilityRef target, SCNetworkConnectionFlags flags, </x-tad-smaller><x-tad-smaller>void </x-tad-smaller><x-tad-smaller>*info)</x-tad-smaller>
{
    MyCocoaClass* obj=(MyCocoaClass*)info;
[obj someMessage];
}
<x-tad-smaller>
</x-tad-smaller>
register your callback in this way ->

SCNetworkReachabilitySetCallback(target, <x-tad-bigger>MySrverIsReachableCallback</x-tad-bigger>, myInstance);

myInstance is of type MyCocoaClass

hope it helps
dariusz
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: trying to overload window for keyDown
  • Next by Date: Re: Problem with some clicks not registering in 10.3.6?
  • Previous by thread: RE[2]: Cocoa Selector As CF Callback Addr?
  • Next by thread: trying to overload window for keyDown
  • Index(es):
    • Date
    • Thread