Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 22 in printed book and digital formats -- plus a one-year subscription (beginning with 23.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Recent issues

Article Preview


Buy Now

Issue 23.1 ('Photo Batch Processing')
Instant purchase and download via GumRoad!

COLUMN

First Contact

Adding New Contact into Apple Contacts

Issue: 23.1 (January/February 2025)
Author: Stefanie Juchmes-Simonis
Author Bio: Stefanie studied computer science at the university in Bonn. She came in touch with Xojo due to the work of her brother-in-law and got a junior developer position in early 2019 at Monkeybread Software.
Article Description: No description available.
Article Length (in bytes): 10,167
Starting Page Number: 64
Article Number: 23108
Resource File(s):

Download Icon project 23108.zip Updated: 2025-01-09 23:32:13

Related Web Link(s):

http://www.apple.com/DTDs/PropertyList-1.0.dtd

Excerpt of article text...

Did you know that you can work with Apple Contacts in Xojo using the MBS Xojo plugins? In this article, I would like to show you how to create a contact from Xojo in the Apple phone book.

In Figure 1, we have a window that provides the data for our contact.

We would now like to use this data in our code. To do this, we first create a new instance of the CNContactStoreMBS class. This instance allows us to work with the contacts and execute fetch and save requests.

Next, we create a new contact as an instance of the CNMutableContactMBS class. We can now set our data on this object. For example, we set the first name of the person using givenName.

Dim ContactStore As New CNContactStoreMBS

...End of Excerpt. Please purchase the magazine to read the full article.