• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Selecting a person in Address Book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selecting a person in Address Book


  • Subject: Re: Selecting a person in Address Book
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 28 Nov 2007 14:25:31 -0500
  • Organization: Rogue Research

On 11/28/07 7:47 PM, Kai Brüning said:

>I'd like to tell the Address Book application to select a specific
>person (given by its id).

Look at the comments at the top of ABAddressBook.h:

// ================================================================
//      OpenURL support
// ================================================================
// An application can open the AddressBook app and select (and edit) a
specific
// person by using the -[NSWorkspace openURL:] API.
//
// To launch (or bring to front) the Address Book app and select a given
person
//
// NSString *urlString = [NSString stringWithFormat:@"addressbook://%@",
[aPerson uniqueId]];
// [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:urlString]];
//
// To launch (or bring to front) the Address Book app and edit a given person
//
// NSString *urlString = [NSString stringWithFormat:@"addressbook://%@?
edit", [aPerson uniqueId]];
// [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:urlString]];

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

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Selecting a person in Address Book
      • From: Kai Brüning <email@hidden>
References: 
 >Selecting a person in Address Book (From: Kai Brüning <email@hidden>)

  • Prev by Date: Re: New Cocoa functionality on Leopard
  • Next by Date: Getting modified object in observeValueForKeyPath:ofObject:change:context: for non-simple key paths
  • Previous by thread: Selecting a person in Address Book
  • Next by thread: Re: Selecting a person in Address Book
  • Index(es):
    • Date
    • Thread