TimeZoneHelper: do not access Address Book on 10.8+
commit91375ac715706fee1fc31ed318bdc118779df647
authorKyle J. McKay <mackyle@gmail.com>
Mon, 13 Jan 2014 05:34:08 +0000 (12 21:34 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 13 Jan 2014 05:34:08 +0000 (12 21:34 -0800)
treec07616fd4ddbff7fe9f95fb73e7cad7b28d6e79f
parent7f06efef08706c8cc95e986eeb48373a4722bf0a
TimeZoneHelper: do not access Address Book on 10.8+

It's extremely unlikely that the Address Book would be accessed
in the first place (only if the last selected city was somehow
not set or was invalid).

Attempting to access the Address Book on 10.8+ presents a
Dialog showing that Dashboard has requested access to Contacts.

Since this is only ever used on rare occasions to initialize the
first city shown, skip trying this if running on 10.8+ to avoid
the ugly dialog.
widget/TimeZoneHelper/2 [new file with mode: 0644]
widget/TimeZoneHelper/TimeZoneHelper.m