|
Project Information
Featured
Downloads
|
ConceptSimilar to IKImageBrowserView, but supports arbitrary drawing via icon subclasses, and is compatible with 10.4. A single-column view that scales icons to fit containers is also available. The view scales to several thousand icons with no problem, and takes advantage of multiple processors/cores when possible. Memory usage for the framework should remain low. Here's a screenshot of one of the SamplePrograms:
Supported File and URL Types
AvailabilityThe framework will run on 10.4 and later. Compilation requires 10.5 or later, for weak-linking the Quick Look framework. Why Use This?If you're only supporting Leopard, IKImageBrowserView is probably faster, and will likely improve in future. FileView is designed to be more flexible (icons scale as large or small as you need), and of course the source is available for modification. It was originally intended for use in BibDesk, so some of the functionality is problem-specific. The icon grid dynamically adjusts layout, so the number of rows and columns will change as you resize the view. Spacing between icons remains uniform, and is slightly "stretchy." This was all very tricky to get right, especially with NSScrollView, so may be useful to others. If you want to draw other objects, you can add your own FVIcon subclass to the FVIcon class cluster and make use of asynchronous drawing and graphics caching. If you want to just draw NSCells, you would likely find it easier to ignore the async caching/drawing code, as NSCell is painful enough in its own right. Code for Dumpster-Divers
Any or all of these may be improved upon significantly, of course! Bug fixes and performance improvements are welcome, and feel free to e-mail with questions or comments. API DocumentationThere are only three public classes in the framework, but most of them are commented. See FrameworkDocumentation for a link to the Xcode docset. Known Problems
UsersBibDesk is using an older version with a bunch of local changes. TeX Live Utility is using it to display documentation thumbnails, and a few people are using the Finder label drawing code. SupportFeel free to email with questions: amaxwell at mac dot com. |