WebServicesCore problem
Todd Ditchendorf
itod at mac.com
Fri Feb 2 09:57:38 PST 2007
> which resulted in this:
>
>> (null): (null)
>> (null): (null)
>> (null): (null)
>> (null): (null)
>>
>
woah... i wonder if you're even hitting the server... this seems to
hint that you may not be.
I'm *def* not the best c programmer, but:
> void **keys = malloc(count*sizeof(void *));
> void **values = malloc(count*sizeof(void *));
>
> CFDictionaryGetKeysAndValues(result,keys,values);
i would try this instead:
> void *keys = malloc(count*sizeof(void *));
> void *values = malloc(count*sizeof(void *));
>
> CFDictionaryGetKeysAndValues(result,&keys,&values);
> 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? :-)
I'm thinking you're not actually accessing the service (is the url
correct?, etc). I would try coding it with TFB and Foundation
included just for kicks until you are certain it's working, then
slowly remove the cocoa code line by line, checking for problems each
step of the way. But then I'm way more comfortable in Cocoa than CF,
so who knows.
>
> Cheers,
>
> Graham.
Todd Ditchendorf
Scandalous Software - Mac XML Developer Tools
http://scan.dalo.us
More information about the MacOSX-dev
mailing list