Re: OutlineView For Files
Re: OutlineView For Files
- Subject: Re: OutlineView For Files
- From: Matt Neuburg <email@hidden>
- Date: Thu, 28 Apr 2005 09:40:31 -0700
On Wed, 27 Apr 2005 13:00:33 -0400, Austin Sarner <email@hidden>
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@hidden, <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>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden