Re: NSOutlineView
Re: NSOutlineView
- Subject: Re: NSOutlineView
- From: Sandeep Parikh <email@hidden>
- Date: Tue, 24 Jul 2001 22:44:12 -0700
Mike,
NSOutlineView will not retain your objects, that is the responsibility
of the class you designated as your data source for the outline. You
must retain them in your data source by keeping them in a Cocoa object
(like an NSArray, NSDictionary, etc.), not in a pure Java object.
-Sandeep
On Tuesday, July 24, 2001, at 10:19 PM, cocoa-dev-
email@hidden wrote:
Message: 2
Date: Tue, 24 Jul 2001 21:56:07 -0400
Subject: NSOutlineView
From: Mike Jackson <email@hidden>
To: <email@hidden>
I am trying to write a Cocoa/Java program to leverage the code that I
have
already written for other projects. I am attempting to use an
NSOutlineView
to show the "Trivial" FileSystem of the Local System (This will be later
extended to show the FileStructure as passed back from our custom server
app). I though I would start "easy" by just redoing the OutLineView
Example
in Java to get started. Not that easy, or I am just missing something.
I made the interface in IB, and followed parallel with the ObjC
example
as best I could. The App actually runs and I get the ubiquitous Finder
Like
File View, but as soon as I start expanding any of the Nodes, or resize
the
window, I start getting the following to the console:
ObjCJava WARNING:
shouldRemove is_weak && retainCount != 1: objc object (ISTLFile:
2460b90 )
with retain count 2 has only a weak Java reference!
I am a bit new to the Cocoa Frameworks and the whole JavaBridge thing,
but
it would seem that I am really missing something simple for this to work
properly. Eventually the App will just crash with various signals...
Thanks for any and All help/Insight
--
Mike Jackson
www.infoscribe.com