Check out STPrivilegedTask, an Objective-C wrapper class around AuthorizationExecuteWithPrivileges() with an NSTask-like interface.
More Related Contents:
- How to get pixel data from a UIImage (Cocoa Touch) or CGImage (Core Graphics)?
- Cocoa: What’s the difference between the frame and the bounds?
- Exception thrown in NSOrderedSet generated accessors
- Core Data vs SQLite 3 [closed]
- “Unknown class in Interface Builder file” error at runtime
- Should I use NSDecimalNumber to deal with money?
- Are “EXC_BREAKPOINT (SIGTRAP)” exceptions caused by debugging breakpoints?
- Why can’t code inside unit tests find bundle resources?
- Cocoa – Notification on NSUserDefaults value change?
- Any cocoa source code for AES encryption decryption?
- Cocoa Keyboard Shortcuts in Dialog without an Edit Menu
- What’s the optimum way of storing an NSDate in NSUserDefaults?
- Using frameworks in a command line tool
- How to use NSDecimalNumber?
- How well is Objective-C++ supported?
- Observing an NSMutableArray for insertion/removal
- Not being able to edit NSTextField on NSPopover even though Editable behavior is set
- Deep copy of dictionaries gives Analyze error in Xcode 4.2
- NSURL URLWithString: is null with non-english accented characters
- How to change NSPopover background color include triangle part?
- Programmatically check if a process is running on Mac
- Widget “flip” behavior in Core Animation/Cocoa
- How do I copy or move an NSManagedObject from one context to another?
- Swift protocols: method does not override any method from its superclass
- NSTimer not firing when runloop is blocked
- How can I determine the running Mac OS X version programmatically?
- What is the best way to redirect stdout to NSTextView in Cocoa?
- How do I draw an NSString at an angle?
- NSData-AES Class Encryption/Decryption in Cocoa
- Executing shell commands with NSTask – Objective-C Cocoa