Per the tccutil(1) man page, you can clear Contacts privacy preferences with the shell command
tccutil reset AddressBook The "why" string comes from the NSContactsUsageDescription ("Privacy - Contacts Usage Description" in Xcode) key in Info.plist: $ defaults read "/Applications/iWork '09/Pages.app/Contents/Info" NSContactsUsageDescription | fold -sw 72 This will let you drag contacts to Pages, and let Pages automatically add your name to templates, tracked changes, and more. To change this setting, open System Preferences and choose Security & Privacy. This is documented in both the _Address Book Programming Guide for Mac_ and the _Information Property List Key Reference_, and discussed in the WWDC "Privacy Support" session. Cheers, Jason On Sep 17, 2012, at 3:48, Manfred Schwind <li...@mani.de> wrote: > Hi, > > when an app tries to access the contacts (via Address Book Framework), OS X > recently asks the user first if this should be allowed. This question is > asked only once per app, then the app is "on the list" and this list can be > seen in System Preferences - Security & Privacy - Privacy - Contacts. There > you can also change your decision later on (not sure if many people know > this). > > My first question is: > How can I delete an app from this list to test the behaviour of the app when > OS X asks the address book question? > > Furthermore I am not entirely sure, but I think when this contacts questions > was asked for Pages I saw a description WHY Pages want to access the > contacts. But I could not find any API to set such a description. So my > second question is if there is such an API that I may have overlooked? It > would be really great to be able to inform the user why an app want to access > contacts to help him decide wether or not he wants to allow it. Is this > overall new "sandboxed" contacts accessing behaviour of OS X documented > somewhere? > > Regards, > Mani > -- > mani.de - friendly software > > > _______________________________________________ > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/jasomill%40me.com > > This email sent to jasom...@me.com
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com