mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 01:12:31 +00:00
changed custom string plugin API slightly to better reflect intention
This commit is contained in:
@@ -62,7 +62,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
Adopt this protocoll if your plugin supports actions on entries.
|
Adopt this protocoll if your plugin supports actions on entries.
|
||||||
Actions will get listed in various places in menues.
|
Actions will get listed in various places in menues.
|
||||||
You should not set target nor actions since they will get stripped.
|
You should not set target nor actions since they will get stripped.
|
||||||
MacPass will call you back via -[MPPlugin performActionFroMenuItem:withEntries:]
|
MacPass will call you back via -[MPPlugin performActionForMenuItem:withEntries:]
|
||||||
*/
|
*/
|
||||||
@protocol MPEntryActionPlugin <NSObject>
|
@protocol MPEntryActionPlugin <NSObject>
|
||||||
@required
|
@required
|
||||||
@@ -80,7 +80,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
|
|
||||||
If nil is returned, an empty value will be used.
|
If nil is returned, an empty value will be used.
|
||||||
*/
|
*/
|
||||||
- (NSString *)valueForAttributeWithKey:(NSString *)key;
|
- (NSString *)initialValueForAttributeWithKey:(NSString *)key;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface MPPlugin (Deprecated)
|
@interface MPPlugin (Deprecated)
|
||||||
|
|||||||
Reference in New Issue
Block a user