Files
Tzu-ping Chung 6d77697e5e Add (extremely) simple plugin architecture
* A menu that holds all plug-ins, refreshed when appearing.
* Show a plug-in via the `-name` property.
* Invoke a plug-in via `-run:` when an item is clicked.

An example is published at <https://github.com/uranusjr/macdown-gistit>.
2016-03-08 17:30:08 +08:00

16 lines
313 B
Objective-C

//
// MPPlugInController.h
// MacDown
//
// Created by Tzu-ping Chung on 02/3.
// Copyright © 2016 Tzu-ping Chung . All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MPPlugInController : NSObject<NSMenuDelegate>
@property (weak) IBOutlet NSDocumentController *documentController;
@end