[iOS] File system viewer for debugging purposes
Objective-C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
TCFileViewer.xcodeproj
TCFileViewer
TestApp
LICENSE
README.md

README.md

TCFileViewer

by nevyn, 20121011

You're writing an iOS app. You just want to know what files you have on disk. Xcode's organizer is so slow. NSFileManager invocations in gdb are tiresome.

TCFileViewer to the rescue! Just pull in TCDocumentViewerController.* and the Viewers you need into your project, maybe the thumbnail icons too, and you can do this:

NSURL *bundlePath = [[NSBundle mainBundle] bundleURL];
UINavigationController *nav = [UINavigationController new];
nav.viewControllers = [TCDirectoryViewController viewControllersForPathComponentsInURL:bundlePath];

to get this:

Yaay!

Want to support some file format I haven't written a viewer for? Just subclass TCDocumentViewerController and override the public methods, and it'll be picked up automatically. Yaay!