Re: [Pythonmac-SIG] Carbon bindings' future

2008-04-11 Thread Daniel Miller
Hi Ronald, Will this work (see attached)? ~ Daniel def getproxies_internetconfig(): """Return a dictionary of scheme -> proxy server URL mappings. By convention the mac uses Internet Config to store proxies. An HTTP proxy, for instance, is stored under the HttpProxy key.

Re: [Pythonmac-SIG] Carbon bindings' future

2008-04-11 Thread Nicholas Riley
Internet Config is deprecated in 10.5; you should use SCDynamicStoreCopyProxies instead (see SCDynamicStoreCopySpecific.h). -- Nicholas Riley <[EMAIL PROTECTED]> | ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.

Re: [Pythonmac-SIG] Carbon bindings' future

2008-04-11 Thread Daniel Miller
Take two (attached). BTW, I'm not sure if I'm doing the memory management correctly, especially with the values returned from CFDictionaryGetValue (it might need a CFRelease in there). Could someone double-check me on that please? ~ Daniel def getproxies_internetconfig(): """Return

Re: [Pythonmac-SIG] Carbon bindings' future

2008-04-11 Thread Nicholas Riley
On Apr 11, 2008, at 3:50 PM, Daniel Miller wrote: > BTW, I'm not sure if I'm doing the memory management correctly, > especially with the values returned from CFDictionaryGetValue (it > might need a CFRelease in there). Could someone double-check me on > that please? The general CF rule is