Re: Making NSBrowser more efficient
Re: Making NSBrowser more efficient
- Subject: Re: Making NSBrowser more efficient
- From: "M. Uli Kusterer" <email@hidden>
- Date: Fri, 12 Nov 2004 21:49:29 +0100
At 18:53 Uhr +0000 12.11.2004, Jeremy Dronfield wrote:
I'm using an NSBrowser for file system browsing. The implementation
is essentially just the Simple Browser example code. The problem is
its slooooowwwwness. When selecting a directory with more than a
couple of hundred files in, display slowness becomes painful OMM -
far, far slower than the Finder's column view (which is the obvious
benchmark).
In my app the main bottleneck was NSDirectoryEnumerator. I wrote a
UKDirectoryEnumerator that's noticeably faster than
NSDirectoryEnumerator (mine uses Carbon HFS calls under the hood).
Gimme a few more hours to post a new version that can be used as a
drop-in-replacement for NSDirectoryEnumerator. The one that's
currently up at
http://www.zathras.de/programming/sourcecode.htm
returns absolute pathnames from nextObject, and doesn't return file labels.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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