1 /* vi:set ts=8 sts=4 sw=4 ft=objc:
3 * VIM - Vi IMproved by Bram Moolenaar
4 * MacVim GUI port by Bjorn Winckler
6 * Do ":help uganda" in Vim to read copying and usage conditions.
7 * Do ":help credits" in Vim to see a list of people who contributed.
8 * See README.txt for an overview of the Vim source code.
11 #import <Cocoa/Cocoa.h>
12 #import <Security/Authorization.h>
15 @interface AuthorizedShellCommand
: NSObject
{
19 AuthorizationRef authorizationRef
;
23 // Pass an array of dictionaries. Each dictionary has to have the following
26 // * MMCommand: The command to execute, an NSString (e.g. @"/usr/bin/rm").
27 // * MMArguments: An array of NSStrings, the arguments that are passed to
30 - (AuthorizedShellCommand
*)initWithCommands
:(NSArray
*)theCommands
;
32 // Runs the command passed in the constructor.
35 // This pops up the permission dialog. Called by run.
36 - (OSStatus
)askUserForPermission
;
41 extern NSString
*MMCommand
;
42 extern NSString
*MMArguments
;