Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gaxel

macrumors newbie
Original poster
Aug 8, 2011
1
0
Hi all,
Sorry for my english.

I have to create an app (c++ using xcode) that need to work with some files that require admin rights. There's a simple way do create an app that ask for the admin password on launch (like an installer)?

Thanks
 
Use the Authorisation Services framework. This is a low-level C framework so can be used equally from C++ and Objective-C. I would not say it's simple but you should be able to get your head around it.

As for creating an installer. Don't. If your application needs an installer use the Apple one.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.