Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebView --> NSWindow = ***decode exception***



Ah!
My ignorance is complete!

Sure enough, I compared my project with Apple's demo and noticed the missing Framework!
It's been so long working with simple projects, that I took the Cocoa Foundation as de facto/project.

Thanks for pointing out the obvious!


Kind Regards,

Ric,

"You need to add "/System/Library/Frameworks/WebKit.framework" to the Linked Frameworks in your Xcode project."

-Jeff


On 01/26/2008 15:52 email@hidden wrote ..
> Environment:  Xcode & Interface Builder 3.0
> 
> Greetings:
> 
> 1) Xcode: added the following to the controller header file:
> 
> #import <Cocoa/Cocoa.h>
> #import <WebKit/WebKit.h>
> 
> 
> @interface xmlController : NSObject {
>     IBOutlet NSTextView *displayXML;
>     IBOutlet NSTextField *statusLine;
>     IBOutlet WebView     *myWebView;
>     
>     NSString *xmlString;
>     NSXMLDocument *xmlDoc;
> }
> 
> 2) Interface Builder: Slide the WebView pallet onto my NSWindow.
> 
> 3) Build the project - OK
> 
> 4) Run the project - *** Uncaught Exception *** raised:
> 
> 2008-01-26 15:47:52.808 myXMLProject[1802:817] An uncaught exception was raised
> 2008-01-26 15:47:52.810 myXMLProject[1802:817] *** -[NSKeyedUnarchiver decodeObjectForKey:]:
> cannot decode object of class (WebView)
> 2008-01-26 15:47:52.810 myXMLProject[1802:817] *** Terminating app due to uncaught
> exception 'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver
> decodeObjectForKey:]: cannot decode object of class (WebView)'
> 2008-01-26 15:47:52.811 myXMLProject[1802:817] Stack: (...
> 
> 
> -------------
> 
> I don't get it.
> The WebKit examples run fine.
> 
> But I can't even run a simple project.
> 
> What's going wrong?
> 
> Remedy???
> 
> Regards,
> 
> Ric.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.