WebServicesCore problem

Graham J Lee leeg at thaesofereode.info
Fri Feb 2 09:51:11 PST 2007


On 2 Feb 2007, at 17:26, Todd Ditchendorf wrote:

> This will cause it to follow redirects and also include raw req and  
> res in the result dicitonary. Print the entire result dictionary to  
> see those.

Thanks for the hint.  I added your lines, then tried to walk the  
dictionary like this:

>     //print out the whole result dict
>     int i, count = 0;
>     count = CFDictionaryGetCount(result);
>     void **keys = malloc(count*sizeof(void *));
>     void **values = malloc(count*sizeof(void *));
>
>     CFDictionaryGetKeysAndValues(result,keys,values);
>
>     for(i=0; i<count; i++)
>     {
>       printf("%s: %s\n", CFStringGetCStringPtr(keys 
> [i],kCFStringEncodingUTF8),
>                          CFStringGetCStringPtr(values 
> [i],kCFStringEncodingUTF8));
>     }
>

which resulted in this:

> (null): (null)
> (null): (null)
> (null): (null)
> (null): (null)
>

as you can tell, I'm more used to doing:
NSLog(@"%@",(NSDictionary *)result);
but as this project is in C I can't use the toll-free bridging :-(.   
So it looks like I'm missing something fundamental about  
CoreFoundation...question is, what is it?  :-)

Cheers,

Graham.


More information about the MacOSX-dev mailing list