| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AddressBook.framework |
| Declared in | ABIdentityPicker.h |
| Companion guides |
An ABIdentityPicker object allows a user to select Address Book records—for example, group or person objects—that it wants one or more services or shared resources to have access to. An identity picker can be displayed either as an application-modal dialog or as a sheet attached to a document window. An identity picker returns the selected records to be added to access control lists using Identity Services. If a selected record is not a sharing account, then an identity picker prompts the end user for additional information—such as a password—to promote that record to a sharing account.
Returns a Boolean value indicating whether the user is allowed to select multiple records.
- (BOOL)allowsMultipleSelection
YES if the user can select multiple records; otherwise, NO.
Runs the receiver modally as a sheet attached to a specified window.
- (void)beginSheetModalForWindow:(NSWindow *)window modalDelegate:(id)delegate didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo
The parent window for the sheet.
The delegate for the modal session.
A message sent to the delegate after the user responds but before the sheet is dismissed.
Contextual data passed to the delegate in the didEndSelector message.
The didEndSelector argument must be a selector that takes three arguments, and the corresponding method should have a declaration modeled on the following example:
- (void)identityPickerDidEnd:(ABIdentityPicker *)identityPickerController identities:(NSArray *)identities contextInfo:(void *)contextInfo; |
where the identityPickerController argument is the identity picker object, the identities argument is an array containing ABPerson objects, and contextInfo is the same contextInfo that was passed in the original message.
– runModalIdentityPicker– identityUniqueId– identityInitializes the receiver immediately after memory for it has been allocated.
- (id)init
Runs the receiver as an application-modal dialog and returns the selected records.
- (NSArray *)runModalIdentityPicker
An array containing the ABRecord objects that the user selected in the panel.
The receiver may create identities for selected records if necessary.
– beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:– identityUniqueId– identityAllows a user to make multiple selections.
- (void)setAllowsMultipleSelection:(BOOL)flag
YES if you can select multiple records; otherwise, NO.
By default, you cannot select multiple records.
Constants used to identify objects.
extern NSString * const kABIdentityUIDProperty;
ABIdentityPicker.h
Last updated: 2006-08-23