Skip navigation.
 
mlRe: OutlineView For Files
FROM : Matt Neuburg
DATE : Thu Apr 28 18:40:31 2005

On Wed, 27 Apr 2005 13:00:33 -0400, Austin Sarner <<email_removed>>
said:
>Hello,
>
>I have an Outline that I use to represent a directory on the user's
>computer.  I do this by recursively scanning the directory and
>populating the outline every time I wish to update it.  Obviously,
>this is not optimal, as I have to rescan EVERYTHING for a single file
>change.  (This can also take an unacceptably long time for large
>enough directory trees).  The main alternative I see is polling a
>file manager in the outline's datasource when needed.  The only
>example of this that I can find is in /Developer/Examples/AppKit and
>seems rather... basic.  It only works on the root of your drive, and
>requires you to have a root item.  Does anyone know of a more
>practical example or how to get started in the right direction?


The only kind of thing that needs to be polled is folders (because a
folder's mod date will change if a file within it changes), and the only
folders that need to be polled are those whose contents are showing (or
about to show) in your NSOutline at that very moment. m.

--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>

Related mailsAuthorDate
mlOutlineView For Files Austin Sarner Apr 27, 19:00
mlRe: OutlineView For Files Matt Neuburg Apr 28, 18:40