Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/Collaboration.framework |
Availability | Available in Mac OS X v10.5 and later. |
Companion guide | |
Declared in | CBIdentityPicker.h |
A CBIdentityPicker
object allows a user to select identities—for example, user or group 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 Collaboration. If a selected record is not a user or group identity, 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 identities.
- (BOOL)allowsMultipleSelection
YES
if the user can select multiple records; otherwise, NO
.
CBIdentityPicker.h
Returns an array of the identities selected using the identity picker.
- (NSArray *)identities
An array of the selected identities.
The array contains CBIdentity
objects.
CBIdentityPicker.h
Runs the receiver as an application-modal dialog.
- (NSInteger)runModal
NSOKButton
if the user selected OK; otherwise, NSCancelButton
.
The receiver may create identities for selected records if necessary.
CBIdentityPicker.h
Runs the receiver modally as a sheet attached to a specified window.
- (void)runModalForWindow:(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
parameter is a selector that takes three arguments. The corresponding method should have a declaration modeled on the following example:
- (void)identityPickerDidEnd:(CBIdentityPicker *)identityPicker identities:(NSArray *)identities contextInfo:(void *)contextInfo; |
where the identityPicker
argument is the identity picker object, the identities
argument is an array containing CBIdentity
objects, and contextInfo
is the same contextInfo
argument that was passed in the original message.
CBIdentityPicker.h
Allows a user to make select multiple identities.
- (void)setAllowsMultipleSelection:(BOOL)flag
YES
if you can select multiple records; otherwise, NO
.
By default, you cannot select multiple records.
CBIdentityPicker.h
Sets the title of the identity picker.
- (void)setTitle:(NSString *)title
The title of the identity picker.
CBIdentityPicker.h
Returns the title of the identity picker.
- (NSString *)title
The title of the identity picker.
CBIdentityPicker.h
© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-05-14)