On Tue, Jul 20, 2010 at 3:34 AM, Luca C. <luca.pazzere...@gmail.com> wrote: > OSStatus result = AuthorizationExecuteWithPrivileges( > > auth, > > "/usr/bin/pmset", > > kAuthorizationFlagDefaults, > > opts, > > NULL); > > But this does not work on 10.6. Why? The authorization is ok, as I tested it > with other commands and works fine. The syntax for pmset is right also...
What is the return code? _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com