• 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: Windows, NSTableView and newie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: Windows, NSTableView and newie question (From: email@hidden)

  • Prev by Date: Re: Initializing an Array
  • Next by Date: Re: Initializing an Array
  • Previous by thread: Re: Windows, NSTableView and newie question
  • Next by thread: How to write code to send an email?
  • Index(es):
    • Date
    • Thread