NSTableView and Java
NSTableView and Java
- Subject: NSTableView and Java
- From: Bryan Zarnett <email@hidden>
- Date: Sun, 12 May 2002 14:01:26 -0400
I'm having a hell of a time debugging a problem with NSTableView in Java.
The view comes up with the data from my data source. I can click on it a few
times, resize it once or twice and then I get the following exception:
2002-05-12 13:54:28.547 CocoaTableTest[2163] java/lang/NullPointerException
Stack Trace:
java.lang.NullPointerException
ObjCJava FATAL:
jobjc_lookupObjCObject(): returning garbage collected java ref for objc
object of class SomeDataSource
ObjCJava Exit
It's very annoying since there is very little code:
// This is in my window controller
SomeDataSource someDataSource = new SomeDataSource();
tableView.setDataSource(someDataSource);
My Data Source implements all the abstract methods of NSTableView.DataSource
and returns hard coded values. For instance, "numberOfRows..." always
returns 3 and tableViewObjectValueForLocation always returns "Foo".
Has anyone else had any problems. Or did I just miss something silly.
I'm going to try the same thing right now in Objective-C to see if the
results are different aka I found a weird bug.
Bryan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.