• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WebView --> NSWindow = ***decode exception***
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: WebView --> NSWindow = ***decode exception***
  • From: email@hidden
  • Date: Sat, 26 Jan 2008 17:34:38 -0800 (PST)

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:

This email sent to email@hidden

  • Prev by Date: Re: WebView --> NSWindow = ***decode exception***
  • Next by Date: Action Cell and Matrix Madness
  • Previous by thread: Re: WebView --> NSWindow = ***decode exception***
  • Next by thread: Action Cell and Matrix Madness
  • Index(es):
    • Date
    • Thread