https://github.com/lessica/documentbrowser
An experimental document browser integration for NSDocument based macOS applications.
https://github.com/lessica/documentbrowser
Last synced: about 1 month ago
JSON representation
An experimental document browser integration for NSDocument based macOS applications.
- Host: GitHub
- URL: https://github.com/lessica/documentbrowser
- Owner: Lessica
- License: other
- Created: 2021-06-05T19:10:51.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-05T19:14:22.000Z (about 5 years ago)
- Last Synced: 2025-07-07T12:43:16.551Z (about 1 year ago)
- Language: Objective-C
- Size: 21.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# DocumentBrowser
## Description
DocumentBrowser is a more advanced version of SimpleCocoaBrowser. It extends on the SimpleCocoaBrowser example by adding more customization. It only supports the new 10.6 item-based browser API, but it is possible to use the same concepts with the old API. It demonstrates header views, preview views, custom cells, and drag and drop.
AppController.h/.m
The AppController class lives in the MainMenu.xib. It is set as the delegate for the main NSApplication instance, and the delegate for the NSBrowser. It also has a single outlet set to the browser. This class contains the root delegate implementation to provide data for the browser, and implements drag and drop.
FileSystemNode.h/.m
This class is a simple wrapper around the file system. Its main purpose is to cache the children for a given NSURL. We do this in order to get a consistent children count.
FileSystemBrowserCell.h/.m
A simple custom cell that draws the file system icon at the appropriate location.
## Requirements
### Build
Xcode 7.1, OS X 10.10 SDK or later
### Runtime
OS X 10.10 or later
Copyright (C) 2009-2015 Apple Inc. All rights reserved.