Addressbook access

  1. 2 weeks ago

    John E

    Jun 24 Testers, Xojo Pro

    Would anyone know why the ADDRESSBOOK function access the MAC address book data when I compile to 32bit but does not when I compile to 64 bit.

    I am using Xojo 2019v1.1

  2. Tim S

    Jun 24 Testers Canterbury, UK

    Hasn't the API to do that been removed by Apple? Probably still there for 32-bit which might explain what you observe.

  3. Christian S

    Jun 24 Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    Addressbook API still exists, but is deprecated.
    Please consider moving to Contacts API. You can access it via MBS Xojo Plugins .

    See Contacts classes here.

    Also you need to include Info.plist entries and entitlements for code signing.

  4. John E

    Jun 24 Testers, Xojo Pro

    Thanks Tim. I can still compile the program in the 32bit mode and it works great. I just have to move it over to CATALINA for some of the people in my office. This is just making more work to update a simple little program that we use.

    Christian, I guess I need to look to your MBS Plugin. You an I spoke one time back at the RealBasic v.1 time when I was living in Munich. Danke...

  5. Christian S

    Jun 24 Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    NSContactsUsageDescription may be needed in Info.plist to allow access.

  6. John E

    Jun 24 Testers, Xojo Pro

    I don't write programs for a living, I write small ones to help in my office. Let me look at the MBS Plugin and see how to implement it into the old RB ADDRESSBOOK code. Thanks for all your help so far. I am guessing I will have more questions after I start in with MBS Contacts...

  7. Something has changed. Try this:

    Dim book as new AddressBook
    Dim Contacts() as AddressBookContact

    //book=System.AddressBook
    Contacts=book.Contacts

    This works all right also on last Catalina.

or Sign Up to reply!