Re: Windows, NSTableView and newie question
Re: Windows, NSTableView and newie question
- Subject: Re: Windows, NSTableView and newie question
- From: Henri Lamiraux <email@hidden>
- Date: Tue, 22 Jan 2002 12:41:37 -0800
This is a limitation of the java bridge. See IB FAQ from the help menu
Why can't I assign a custom Java subclass to an AppKit object?
The Java Bridge (which allows Java and Objective-C classes to
communicate) implements the NSCoder protocol methods for every Java
object that is a subclass of an Objective-C object. The problem is that
the Java Bridge adds an initWithCoder: which expects some data within
the coder stream. Unfortunately, this data does not exist.
On Tuesday, January 22, 2002, at 10:44 AM, email@hidden wrote:
>
Thanks, it works!!!. I have 1 more question. For doing this I must
>
subclass for example my NSWindow and put the awakefromnib. I tried to
>
subclass the NSTableView, as a tableview and nsscrollview (IB says its a
>
NSScrollView). WHen i do that my application exist with errors :
>
>
2002-01-22 15:37:22.372 HPop[1706] AppKitJava: uncaught exception
>
NSArchiverArchiveInconsistency (*** file inconsistency: read '@',
>
expecting 'C')
>
2002-01-22 15:37:22.374 HPop[1706] AppKitJava: exception = *** file
>
inconsistency: read '@', expecting 'C'
>
2002-01-22 15:37:22.374 HPop[1706] AppKitJava: terminating.