• 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: NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView


  • Subject: Re: NSOutlineView
  • From: Mike Jackson <email@hidden>
  • Date: Wed, 25 Jul 2001 13:22:31 -0400

on 7/25/01 1:44 AM, email@hidden wrote:

> 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
>
Ok, so let me get this straight before I go off and get more confused. What
I have done is create a FileBrowser.java class that holds the NSOutlineView
Object. I have also create a DataSource.java Object that acts as the go
between from NSOutlineView and getting data from ISTLFile.java Objects. Of
these, I would like to keep the ISTLFile as a pure java code as that is used
for other pure java projects that I am working on. So if I am understanding
your reply correctly, I could have DataSource subclass NSObject.java, and
still get the data from my pure java ISTLFile Object, maybe like so:

class DataSource extends NSObject {
ISTLFile rootItem;

MEthods to get Children and other information from ISTLFile Objects....

}

Is this anywhere in the Ball Park? Thanks for the help...
--
Mike Jackson
www.infoscribe.com


  • Follow-Ups:
    • Re: NSOutlineView
      • From: "Doug Knowles \(PB\)" <email@hidden>
References: 
 >Re: NSOutlineView (From: Sandeep Parikh <email@hidden>)

  • Prev by Date: Re: NSImage Drawing
  • Next by Date: Re: NSImage Drawing
  • Previous by thread: Re: NSOutlineView
  • Next by thread: Re: NSOutlineView
  • Index(es):
    • Date
    • Thread