joannou / tcaewp

A wrapper for Mac OS X's Security framework's Authorization Services' AuthorizationExecuteWithPrivileges function.

joannou (author)
Wed Jan 14 20:44:41 -0800 2009
commit  2be2780502511e988521be295b9b1899cb3ec668
tree    ab40d2b8df72fbe4b21d49e16925f6f568a36724
tcaewp / TCAEWP.h
100644 13 lines (10 sloc) 0.248 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
/* TCAEWP */
 
#import <Cocoa/Cocoa.h>
#import <Security/Authorization.h>
#import <Security/AuthorizationTags.h>
 
@interface TCAEWP : NSObject
{
AuthorizationRef ref;
}
- (NSString *)execute:(NSString *)command arguments:(NSArray *)arguments;
@end