Frederik Seiffert
2005-02-17 12:55:20 UTC
Hi!
I'm trying to get notifications about network configuration changes from
the SystemConfiguration framework in a Mach-O application. What I want
to do in RB is pretty much the same as this code:
<http://www.slamb.org/svn/repos/projects/netgrowler/SCDynamicStore.m>
While it is no problem to open the dynamic store with
SCDynamicStoreCreate passing a callback function with the RB AddressOf
operator, I'm not sure how to go about the
SCDynamicStoreCreateRunLoopSource call, which I seem to need in order
for the callback function to get called.
Is there a way to add a CFRunLoopSourceRef in RB? Or is there some other
way to get this working?
Thanks,
Frederik
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
I'm trying to get notifications about network configuration changes from
the SystemConfiguration framework in a Mach-O application. What I want
to do in RB is pretty much the same as this code:
<http://www.slamb.org/svn/repos/projects/netgrowler/SCDynamicStore.m>
While it is no problem to open the dynamic store with
SCDynamicStoreCreate passing a callback function with the RB AddressOf
operator, I'm not sure how to go about the
SCDynamicStoreCreateRunLoopSource call, which I seem to need in order
for the callback function to get called.
Is there a way to add a CFRunLoopSourceRef in RB? Or is there some other
way to get this working?
Thanks,
Frederik
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>