Re: Selecting a person in Address Book
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