RE: Cocoa Selector As CF Callback Addr?
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