happykete / mac-soapclient

Automatically exported from code.google.com/p/mac-soapclient
0 stars 0 forks source link

Issue with Building the Source #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the source from SVN
2. Open in XCode
3. Hit Build and Go

What is the expected output? What do you see instead?

Throws an exception on line 1349 of SCController.m

What version of the product are you using? On what operating system?

Please provide any additional information below.

Commenting out this block seems to remove the exception:
    if (offset == 0) {
        NSRect r = [[self window] frame];
        id innerHeight = [[WSDLWebView windowScriptObject]
evaluateWebScript:InnerHeightScript];
        int i = [innerHeight intValue];
        if (!innerHeight || [innerHeight isKindOfClass:[WebUndefined class]] || 0
== i) {
            return r.size.height - 130;
        } else {
            return i + 75;
        }
    }

Original issue reported on code.google.com by googlegr...@gersic.com on 13 Nov 2008 at 3:12

GoogleCodeExporter commented 9 years ago
What version of Xcode do you use? Are you compiling on Leopard or Tiger?

Original comment by christia...@googlemail.com on 8 Mar 2009 at 1:45

GoogleCodeExporter commented 9 years ago
I just built the project on Snow Leopard. Sending the intValue message to 
innerHeight will fail if innerHeight is a 
WebUndefined object (or any other object that does not respond to intValue).

To fix this, you must perform the [innerHeight isKindOfClass:[WebUndefined 
class]] test BEFORE calling [innerHeight intValue].

Original comment by benz...@gmail.com on 27 Oct 2009 at 5:13

GoogleCodeExporter commented 9 years ago
Fixed this bug in the trunk.

Original comment by christia...@googlemail.com on 30 Jan 2010 at 9:52