Mac Developer Library

Developer

AddressBook Framework Reference ABPersonView Class Reference

Options
Deployment Target:

On This Page
Language:

ABPersonView

The ABPersonView class provides a view for displaying and editing contacts.

Inheritance


Import Statement


Swift

import AddressBook

Objective-C

@import AddressBook;

Availability


Available in OS X v10.7 and later.
  • editing editing Property

    A Boolean value that indicates whether the person view is in editing mode.

    Declaration

    Swift

    var editing: Bool

    Objective-C

    @property(assign) BOOL editing

    Discussion

    In editing mode, the person view displays additional controls to let the user change the contact’s information.

    Import Statement

    Objective-C

    @import AddressBook;

    Swift

    import AddressBook

    Availability

    Available in OS X v10.7 and later.

  • person person Property

    The contact record being displayed.

    Declaration

    Swift

    var person: ABPerson!

    Objective-C

    @property(readwrite, retain) ABPerson *person

    Discussion

    If the value of this property is nil, the view displays a special empty-selection UI.

    An exception is raised if the value of this property comes from a shared instance of the address book database. To prevent this, use the addressBook method of ABAddressBook rather than the sharedAddressBook method.

    Import Statement

    Objective-C

    @import AddressBook;

    Swift

    import AddressBook

    Availability

    Available in OS X v10.7 and later.

  • Indicates whether the person view should display data from person records that are linked with the person record being displayed.

    Declaration

    Swift

    var shouldShowLinkedPeople: Bool

    Objective-C

    @property(assign) BOOL shouldShowLinkedPeople

    Discussion

    Linked records represent the same actual person, and typically come from different sources.

    Import Statement

    Objective-C

    @import AddressBook;

    Swift

    import AddressBook

    Availability

    Available in OS X v10.8 and later.