Latest | 0.1.0 |
---|---|
Homepage | https://github.com/Daij-Djan/QuicklookAdditionalViews |
License | MIT |
Platforms | osx 10.7, requires ARC |
Frameworks | Quartz |
Authors |
QLPreviewPanel+AdditionalViews
An extension for the OSX cocoa class QLPreviewPanel which is used to show and control Apple’s Quicklook panel. (10.7+).
The Category provides two new properties to the PreviewPanel to set additional views in the titlebar. (iOS-like)
@property(nonatomic, retain) NSView *leftBarView;
@property(nonatomic, retain) NSView *rightBarView;
also available via cocoapods
The Extension works in any cocoa app, uses no private API and has no dependencies. The code uses method Swizzling and associative storage [shady but cool] to get the runtime to ‘integrate’ our category and even do it automatically (only drop in the file and you’re good to go!)
Latest podspec
{ "name": "DDQuicklookAdditionalViews", "version": "0.1.0", "summary": "An extension for the OSX cocoa class QLPreviewPanel. The Category allows to set additional views in the titlebar.", "homepage": "https://github.com/Daij-Djan/QuicklookAdditionalViews", "authors": { "Dominik Pich": "[email protected]" }, "license": { "type": "MIT" }, "platforms": { "osx": "10.7" }, "source": { "git": "https://github.com/Daij-Djan/QuicklookAdditionalViews.git", "tag": "0.1.0" }, "source_files": "QLPreviewPanel+AdditionalViews/*.{h,m}", "frameworks": "Quartz", "requires_arc": true }
Wed, 02 Mar 2016 15:21:06 +0000