Java and Cocoa - NSTableView and NSOutlineView
Java and Cocoa - NSTableView and NSOutlineView
- Subject: Java and Cocoa - NSTableView and NSOutlineView
- From: "Kent Smotherman" <email@hidden>
- Date: Tue, 3 Jul 2001 14:01:36 -0500
I did some poking around the archives and found some suggestions that the
trouble with NSOutlineView and Java is true of some other API's in Cocoa as
well, and the argument goes like this: NSOutlineView (or whatever control is
being discussed) does not keep a reference to the objects the user code
provides and so the java garbage collector is freeing these objects if the
user code does not maintain it's own references to them. THIS CANNOT BE
TRUE! With NSOutlineView for example, the argument is basically that what is
returned from outlineViewChildForItem is not being "retained" by Cocoa. If
it were not being retained by Cocoa, what object is Cocoa passing in during
outlineViewValueForItem for example??? This can simply not be the case, the
real cause of these issues must be elsewhere. Any ideas anyone?
Kent Smotherman