On Jul 24, 2007, at 9:44 AM, Adam R. Maxwell wrote:

>
> On Jul 24, 2007, at 01:30, Christiaan Hofman wrote:
>
>>
>> On 24 Jul 2007, at 7:44 AM, James Howison wrote:
>>
>>> kCFStreamPropertySOCKSProxyPort];
>>>
>>> CFStringRef proxyKey =  CFSTR("kCFStreamPropertySOCKSProxy");
>
>
> This is a global constant, so shouldn't be wrapped in a CFSTR macro.
> Other than that, it looks good to me.  Nice work.

Righto, I'll try that.

>>> WSMethodInvocationSetProperty( fRef, proxyKey, (CFDictionaryRef)
>>> settings );
>>>
>>> [settings release];
>>>
>>> It compiles fine, but testing it still produces the "you may not  
>>> have
>>> permission" message.
>>>
>>> Not sure how to check whether the property actually gets set.  I've
>>> put a breakpoint in around my new code, but a search executes  
>>> without
>>> triggering it.  I guess I'm working in the wrong part of the code?
>>>
>>> Any ideas on debugging this appreciated.
>>>
>>> Thanks,
>>> James
>>
>> It should definitely not be in -[WSGeneratedObj getRef], as that is a
>> generic method for an abstract object. I think it should be in the
>> concrete implementation -[BDSKISIWebServices genCreateInvocationRef],
>> and probably it would make sense to extent the generic method -
>> [WSGeneratedObj createInvocationRef:...] to take additional arguments
>> for the proxy host/port.
>
> Putting it in -genCreateInvocationRef would be kind of a hassle, since
> there are too many subclasses.  At least for testing, just add the
> code in -createInvocationRef... since all the subclasses use that
> method.  Using -getRef should work fine, though.  Use an NSLog or
> log_method() to see if it gets called.

I'll keep plugging on it.  Who knows why the breakpoints aren't  
working, I'll try some NSLogs.  Yeah, I thought to avoid repeating it  
in each of the subclasses, there is already a lot of repetition in  
the generated code.

Thanks guys,
James

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bibdesk-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop

Reply via email to