• 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: Jeff Johnson <email@hidden>
  • Date: Sat, 26 Jan 2008 18:06:59 -0600

Ric,

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

-Jeff


On Jan 26, 2008, at 5:52 PM, 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


References: 
 >WebView --> NSWindow = ***decode exception*** (From: email@hidden)

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