cog/Preferences/PreferencePanePlugin.h

29 lines
667 B
Objective-C

//
// PreferencePanePlugin.h
// Cog
//
// Created by Vincent Spader on 3/7/09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#define NSLocalizedPrefString(key) \
[[NSBundle bundleWithIdentifier:@"org.cogx.cog.preferences"] localizedStringForKey:(key) value:@"" table:nil]
@protocol PreferencePane <NSObject>
@required
@property(readonly) NSView *view;
@property(readonly, copy) NSString *title;
@property(readonly) NSImage *icon;
@end
@protocol PreferencePanePlugin <NSObject>
@required
// An array of PrefPaneController instances that the plugin has available
+ (NSArray<id<PreferencePane>> *)preferencePanes;
@end