Discussion:
purpose of asking to access contacts
(too old to reply)
James Walker
2018-06-13 18:01:40 UTC
Permalink
On iOS, you can give the user a hint of why you need access to contacts
by putting a purpose string in the Info.plist. There isn't any way to
do that on macOS, is there?
_______________________________________________

Cocoa-dev mailing list (Cocoa-***@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/gegs%40ml-in.narkive.net

This email sent to ***@ml-in.narkive.net
Sean McBride
2018-06-13 19:58:47 UTC
Permalink
Post by James Walker
On iOS, you can give the user a hint of why you need access to contacts
by putting a purpose string in the Info.plist. There isn't any way to
do that on macOS, is there?
There is: NSContactsUsageDescription in your Info.plist

Cheers,

Sean


_______________________________________________

Cocoa-dev mailing list (Cocoa-***@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/gegs%40ml-in.narkive.net

This email sent to ***@ml-in.narkive.net
James Walker
2018-06-13 21:53:50 UTC
Permalink
_______________________________________________

Cocoa-dev mailing list (Cocoa-***@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/gegs%40ml-in.narkive.net

This email sent to ***@ml-in.narkive.net
James Walker
2018-06-13 22:26:26 UTC
Permalink
Post by Sean McBride
Post by James Walker
On iOS, you can give the user a hint of why you need access to contacts
by putting a purpose string in the Info.plist. There isn't any way to
do that on macOS, is there?
There is: NSContactsUsageDescription in your Info.plist
Cheers,
Sean
Oh, cool. The " Information Property List Key Reference" seemed to
indicate in one place that it's only for iOS, but now I see another
place where it says macOS 10.8 and later. Do you happen to know if it
works with the old AddressBook framework, or do I need to rewrite with
the CNContact stuff?
_______________________________________________

Cocoa-dev mailing list (Cocoa-***@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/gegs%40ml-in.narkive.net

This email sent to ***@ml-in.narkive.net
Sean McBride
2018-06-14 01:01:09 UTC
Permalink
Post by James Walker
Oh, cool. The " Information Property List Key Reference" seemed to
indicate in one place that it's only for iOS, but now I see another
place where it says macOS 10.8 and later. Do you happen to know if it
works with the old AddressBook framework, or do I need to rewrite with
the CNContact stuff?
It works with the old AB framework. I haven't even moved to the newer one yet, but I assume it works there too.

Cheers,
--
____________________________________________________________
Sean McBride, B. Eng ***@rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-***@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/gegs%40ml-in.nar
Continue reading on narkive:
Loading...