forked from jessegrosjean/blocks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
BPlugin.h
63 lines (47 loc) · 1.35 KB
/
BPlugin.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//
// BPlugin.h
// Blocks
//
// Created by Jesse Grosjean on 8/21/07.
// Copyright 2007 Blocks. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class BRequirement;
@class BExtensionPoint;
@class BExtension;
@interface BPlugin : NSObject {
NSBundle *bundle;
NSString *label;
NSString *version;
NSString *identifier;
NSMutableArray *requirements;
NSMutableArray *extensionPoints;
NSMutableArray *extensions;
NSUInteger discoveryOrder;
NSString *documentation;
}
#pragma mark Class Methods
+ (BPlugin *)pluginForClass:(Class)aClass;
#pragma mark Init
- (id)initWithBundle:(NSBundle *)aBundle;
#pragma mark Properties
@property(readonly) NSBundle *bundle;
@property(readonly) NSString *label;
@property(readonly) NSString *version;
@property(readonly) NSString *identifier;
@property(readonly) NSArray *requirements;
@property(readonly) NSArray *extensionPoints;
@property(readonly) NSArray *extensions;
@property(readonly) NSString *documentation;
@property(readonly) NSArray *headerFilePaths;
#pragma mark Loading Bundle
@property(readonly) BOOL isLoaded;
- (BOOL)loadAndReturnError:(NSError **)error;
#pragma mark Util
- (Class)classNamed:(NSString *)className;
- (NSImage *)imageNamed:(NSString *)imageName;
- (NSString *)localizedPluginXmlString:(NSString *)string;
@end
@interface NSBundle (BPluginExtensions)
- (NSString *)version;
@end