Fix placement of auxiliary IM window for Core Text
[MacVim.git] / src / MacVim / AuthorizedShellCommand.h
blob2bf139cfc67428ba8a27dd0b915f724ea7abcba8
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.
9 */
11 #import <Cocoa/Cocoa.h>
12 #import <Security/Authorization.h>
15 @interface AuthorizedShellCommand : NSObject {
17 NSArray *commands;
19 AuthorizationRef authorizationRef;
23 // Pass an array of dictionaries. Each dictionary has to have the following
24 // keys:
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
28 // the command.
30 - (AuthorizedShellCommand *)initWithCommands:(NSArray *)theCommands;
32 // Runs the command passed in the constructor.
33 - (OSStatus)run;
35 // This pops up the permission dialog. Called by run.
36 - (OSStatus)askUserForPermission;
38 @end
41 extern NSString *MMCommand;
42 extern NSString *MMArguments;