Open record in Address Book

  • Hi all:

    My application uses the address book framework for storing and
    retrieving contact information at/from the address book database.

    I would like to double click on an entry in my application (which holds
    a unique ID referring to [ABRecord uniqueId]) to open the appropriate
    entry in Apple's Address Book application.

    Any idea how to do this nicely?

    Thanks!
    /CA
  • On Jan 4, 2008, at 12:32 PM, Claus Atzenbeck wrote:

    > I would like to double click on an entry in my application (which
    > holds
    > a unique ID referring to [ABRecord uniqueId]) to open the appropriate
    > entry in Apple's Address Book application.
    >
    > Any idea how to do this nicely?

    The easiest way is to use NSWorkspace to open a URL with the scheme
    "addressbook" and the host being equal to the escaped unique ID.

    Nick Zitzmann
    <http://www.chronosnet.com/>
  • On Fri, 4 Jan 2008, Nick Zitzmann wrote:

    > The easiest way is to use NSWorkspace to open a URL with the scheme
    > "addressbook" and the host being equal to the escaped unique ID.

    Works perfectly. Thanks for this pointer.

    Claus
  • On 1/4/08 8:32 PM, Claus Atzenbeck said:

    > I would like to double click on an entry in my application (which holds
    > a unique ID referring to [ABRecord uniqueId]) to open the appropriate
    > entry in Apple's Address Book application.

    See the comments at the top of ABAddressbook.h

    --
    ____________________________________________________________
    Sean McBride, B. Eng                <sean...>
    Rogue Research                        www.rogue-research.com
    Mac Software Developer              Montréal, Québec, Canada
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today