An open API service indexing awesome lists of open source software.

https://github.com/orta/preferences

Add preferences support for your Xcode plugins.
https://github.com/orta/preferences

Last synced: 11 months ago
JSON representation

Add preferences support for your Xcode plugins.

Awesome Lists containing this project

README

          

# Add preferences for your Xcode plugins.

![Screenshot](https://raw.github.com/orta/Preferences/master/web/screenshot.png)

Currently in Developer release, if you would like to add support for your plugin, you need to:

Add support for this protocol to one of the classes in your plugin

```objc
#import

@protocol ORPreferenceHost

+ (NSString *)titleForPreferences;
+ (NSViewController *)viewControllerForPreferences;

@end
```

and return a view controller, currently the view frame is 500 by 440. If you'd like to check if someone has the plugin installed, see if `NSClassFromString(@"ORPreferencesEnhancer")` returns something.

### Installation

```
git clone https://github.com/orta/Preferences.git
cd Preferences
xcodebuild
```

Then restart Xcode.

### Example

There is an example plugin which has support for Preferences in the example folder.