From: Steve C. <sco...@gm...> - 2009-02-15 00:48:19
|
I agree that the class methods aren't the problem - it appears to me like the initialization may have completed, and somewhere on the way to calling startLoading there's either a blocking call that I'm not aware of, or something else. What are the tools the Rubycocoa people bring to bear when there's a mystery like this? Is there a debugger one can easily fire up to see what's going on? Ruby-debug isn't much help - the hang is apparently just after the return from canonicalRequestForRequest... -Steve On Sat, Feb 14, 2009 at 12:55 PM, Allison Newman <dem...@ma...> wrote: > I don't have any good ideas as to what is going wrong, except to say > that it would appear to me that the injection of class methods is not > the real problem, it's a red-herring. you can see in the trace that > they are correctly called, and they return without any obvious > problems, so I'm guessing the real problem is elsewhere. > > What happens if you remove either the definition of the function, the > call to objc_class_method, or both? Does it still work, or does it > hang? Have you tried implementing the class in Objective-C to see > what happens (this would at least make sure that you are returning > reasonable values from your functions, if it works in obj-c). I'm > wondering about that 0 that you return for canInitWithRequest: isn't > that function supposed to return a boolean, hence false, rather than 0? > > Ummm, apart from that, I'm not too familiar with NSURLProtocol, so I > can't offer up any special insight to the actual implementation :-) > > > Le 14 févr. 09 à 20:35, Steve Conover a écrit : > >>>> objc_class_method(:canInitWithRequest_, '@:@@') >>>> def self.canInitWithRequest(ns_url_request) >>>> p" canInitWithRequest" >>>> 0 >>>> end > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |