Re: Crash trying to unarchive webview from IB document
Re: Crash trying to unarchive webview from IB document
- Subject: Re: Crash trying to unarchive webview from IB document
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 25 May 2010 13:14:06 -0600
On 25 maj 2010, at 13.10, Laurent Daudelin wrote:
> I was doing a little demo to a colleague this morning and built a simple app consisting of a text field and a web view in IB. I was able to run the thing from IB but when I tried to compile it as release and launch it, it would crash with an exception:
>
> *** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (WebView)'
>
> I tried to look if I did something wrong but since it was just a little demo with no code written, I'm a bit stumped. I created a new project for a Cocoa app, nothing fancy, then opened the MainWindow.xib in IB to add the text field and the webview.
>
> Anyone has any idea?
Did you remember to link your target to the WebKit framework? That's where the WebView class lives.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden