• 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: Problems with NSOutlineView in Java?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with NSOutlineView in Java?


  • Subject: Re: Problems with NSOutlineView in Java?
  • From: Doug Knowles <email@hidden>
  • Date: Tue, 26 Jun 2001 23:15:16 -0400

A follow-up on this one:

It was suggested that my DataSource was being garbage collected. I think I've refuted this: my DataSource now registers itself as a property change listener with other objects, assuring that there are references to it. I've also instrumented the finalize() method, which does not appear to be called.

I'm wondering if I am missing a notification handler or some other method that is expected by the Objective-C implementation.

One refinement of my observations I can offer: if I implement selectionShouldChangeInOutlineView() and return false, no failure occurs (and, of course, there is no response to clicks on items in the view). If I return true, the SIGxxx occurs right after selectionShouldChangeInOutlineView() reports that it has been called.

Doug K;

On Friday, June 22, 2001, at 12:14 AM, email@hidden wrote:

I'm trying to implement an NSOutlineView in a Java application; at the moment, the app fails on the first mouse click onto the NSOutlineView object. The failure is usually a SIGBUS; when I ran it under gdb to get the stack trace below, the signal was "EXC_BAD_ACCESS".

I'm mailing the list because I thought I remembered seeing a post on the the Project Builder list that there are known problems with Java and NSOutlineView (or perhaps the Java bridge). Is this correct? Is there a known workaround? Or am I doing something wrong or incomplete?

If this is a known problem, are there release notes I should have known about?

Thanks in advance...

Doug K;

(gdb) backtrace
#0 0x743e9aa4 in _BRIDGEJavaInfoForObjcClass ()
#1 0x743ea1fc in NSIdToJavaHandle ()
#2 0x743ea4c8 in _BRIDGEConvertObjcArgToJava ()
#3 0x743eeb98 in _BRIDGEMorphObjcArgumentsForJava ()
#4 0x743eee14 in _NSInvokeJavaMethod ()
#5 0x743eb05c in _BRIDGEMethodImp ()
#6 0x70f8ab24 in -[NSOutlineView _dataSourceValueForColumn:row:] ()
#7 0x70f9e0a8 in -[NSTableView mouseDown:] ()
#8 0x70f8e64c in -[NSOutlineView mouseDown:] ()
#9 0x70d85600 in -[NSWindow sendEvent:] ()
#10 0x70d78d50 in -[NSApplication sendEvent:] ()
#11 0x70d7548c in -[NSApplication run] ()
#12 0x70d9799c in NSApplicationMain ()
#13 0x00002e90 in main (argc=1, argv=0xbffffd08) at main.m:5/Users/dknowles/Projects/selene/SIOAqua/
#14 0x00002db4 in _start ()
#15 0x00002bf4 in start ()
#16 0xbffffdc0 in ?? ()
(gdb)
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Problems with NSOutlineView in Java? (From: email@hidden)

  • Prev by Date: Re: Library loading policy on Mac OS X with Cocoa
  • Next by Date: Cocoa Java NSString drawing?
  • Previous by thread: Re: Problems with NSOutlineView in Java?
  • Next by thread: Re: Problems with NSOutlineView in Java?
  • Index(es):
    • Date
    • Thread