22 Dec 2008, 21:32
Me_v3_pragsmall

Collin VanDyck (4 posts)

I’m going through the book, and in section 3.6 I ran into a bit of a problem. When I add additional text fields and wire them up through the connection inspector for the WebView, the built application crashes when I hit enter on one of the new text fields. The original text field still works properly, though, leading me to believe that there is something that I have missed.

The WebView connections:

!http://files.gluedtomyseat.com/skitch/Web_View_Connections-20081222-163042.png!

The attributes of the second text field:

!http://files.gluedtomyseat.com/skitch/Text_Field_Attributes-20081222-163123.png!

Any ideas? I ran the app through the debugger, and instead of an exception or backtrace, I receive this message:

The Debugger has exited due to signal 2 (SIGINT).The Debugger has exited due to signal 2 (SIGINT).

thanks very much

-Collin

22 Dec 2008, 21:37
Me_v3_pragsmall

Collin VanDyck (4 posts)

Weird. I tried going to the original URL, but sent from the second text field, and that worked. So it seems that it is crashing when trying to load “http://www.cnn.com”. However, this works just fine with Safari. Boggle!

22 Dec 2008, 21:47
Me_v3_pragsmall

Collin VanDyck (4 posts)

OK, after further debugging, apparently removing the Flash plugin under /Library/Internet Plug-Ins fixes the crashing problem. I re-installed the Flash 10 player, and then the application commenced crashing in the same manner as before.

22 Dec 2008, 22:14
Me_v3_pragsmall

Collin VanDyck (4 posts)

Update - it seems as if it is a Flash 10 problem. After uninstalling via the official Flash uninstaller:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157

And then installing the Flash 9 player, the SimpleBrowser works with cnn.com and other Flash sites that I tested out. Hope this helps someone.

-Collin

22 Dec 2008, 22:37
Daniel_pragsmall

Daniel H Steinberg (97 posts)

Thanks Colin – this is the simplest of Web Browsers and isn’t intended to work with Flash based sites etc. I will add a note to this effect, but really the goal of the web browser example is to motivate your learning of Cocoa programming techniques and not to create a full-featured browser.

I will be more clear with this. Thank you,

Daniel

13 Jun 2009, 05:37
Generic-user-small

Greg Borenstein (3 posts)

I’m seeing a similar behaviour only with the additional oddity that the application starts up and runs just fine when rendering flash within Cocoa Simulator.

(Book is great so far by the way; I really liked the comparison in the introduction of getting acquainted with a new neighborhood. I wish that was the approach all intro tech books took!)

  You must be logged in to comment