FROM : Sean McBride
DATE : Wed Nov 28 20:25:31 2007
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_removed>
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
DATE : Wed Nov 28 20:25:31 2007
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_removed>
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
| Related mails | Author | Date |
|---|---|---|
| Kai Brüning | Nov 28, 19:47 | |
| Sean McBride | Nov 28, 20:25 | |
| Kai Brüning | Nov 28, 20:58 |






Cocoa mail archive

