Dear all,

I am a new developer of Cocoa. Today I tried to learn how to use WebView. I
just created a simple Cocoa Application, which is NOT document-based or
using Core Data. After that, WebView is dragged from the Library to the
Window of the newly-created Cocoa application. Without doing anything else,
I started to run it. It is weird that it got an uncaught exception. The
following is what is shown in the console. Could you help me how to solve
that?

By the way, I am working on Mac OS X 10.6.7. The version of my XCode is
3.2.5, 64-bit.

I appreciate so much for your help!

LB

[Switching to process 12822]

Running…

*2011-04-07 10:19:45.629 SimpleBrowser[12822:a0f] An uncaught exception was
raised*

*2011-04-07 10:19:45.631 SimpleBrowser[12822:a0f] *** -[NSKeyedUnarchiver
decodeObjectForKey:]: cannot decode object of class (WebView)*

*2011-04-07 10:19:45.632 SimpleBrowser[12822:a0f] *** Terminating app due to
uncaught exception 'NSInvalidUnarchiveOperationException', reason: '***
-[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class
(WebView)'*

**** Call stack at first throw:*

*(*

* 0   CoreFoundation                      0x00007fff861637b4
__exceptionPreprocess + 180*

* 1   libobjc.A.dylib                     0x00007fff8830a0f3
objc_exception_throw + 45*

* 2   CoreFoundation                      0x00007fff861635d7 +[NSException
raise:format:arguments:] + 103*

* 3   CoreFoundation                      0x00007fff86163564 +[NSException
raise:format:] + 148*

* 4   Foundation                          0x00007fff87e22b22
_decodeObjectBinary + 2427*

* 5   Foundation                          0x00007fff87e238a1
-[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1229*

* 6   Foundation                          0x00007fff87e23de1
-[NSArray(NSArray) initWithCoder:] + 462*

* 7   Foundation                          0x00007fff87e22b9b
_decodeObjectBinary + 2548*

* 8   Foundation                          0x00007fff87e22015 _decodeObject +
208*

* 9   AppKit                              0x00007fff8642601e -[NSView
initWithCoder:] + 362*

* 10  Foundation                          0x00007fff87e22b9b
_decodeObjectBinary + 2548*

* 11  Foundation                          0x00007fff87e22015 _decodeObject +
208*

* 12  AppKit                              0x00007fff864343e3
-[NSWindowTemplate initWithCoder:] + 3824*

* 13  Foundation                          0x00007fff87e22b9b
_decodeObjectBinary + 2548*

* 14  Foundation                          0x00007fff87e238a1
-[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1229*

* 15  Foundation                          0x00007fff87e232e4 -[NSSet(NSSet)
initWithCoder:] + 447*

* 16  Foundation                          0x00007fff87e22b9b
_decodeObjectBinary + 2548*

* 17  Foundation                          0x00007fff87e22015 _decodeObject +
208*

* 18  AppKit                              0x00007fff863b610e
-[NSIBObjectData initWithCoder:] + 1983*

* 19  Foundation                          0x00007fff87e22b9b
_decodeObjectBinary + 2548*

* 20  Foundation                          0x00007fff87e22015 _decodeObject +
208*

* 21  AppKit                              0x00007fff863b583d loadNib + 146*

* 22  AppKit                              0x00007fff863b4d9a
+[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 248
*

* 23  AppKit                              0x00007fff863b4bd2
+[NSBundle(NSNibLoading) loadNibNamed:owner:] + 326*

* 24  AppKit                              0x00007fff863b2153
NSApplicationMain + 279*

* 25  SimpleBrowser                       0x0000000100001891 main + 33*

* 26  SimpleBrowser                       0x0000000100001868 start + 52*

* 27  ???                                 0x0000000000000001 0x0 + 1*

*)*

*terminate called after throwing an instance of 'NSException'*

Program received signal:  “SIGABRT”.

sharedlibrary apply-load-rules all

kill

quit
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to