Version: 1.1

Posted: 2006-10-16

Build Requirements: Xcode

Runtime Requirements: Mac OS X 10.4 and Later

View Source Code:

Download Sample (“”, 87.2K)
Download Sample (“SeeMyFriends.dmg”, 147.8K)


SeeMyFriends displays all user's Contact data in a very simple way (first name, last name, picture if present) in a custom HIView whose content is updated when the contacts are changed by another sync client. SeeMyFriends itself does not allow modification of data, and is a read-only sync client. Therefore, it does not have an explicit sync button but instead is expected to be triggered through the mechanism of sync alert. It will however trigger a sync at launch to update its content.

A way to test SeeMyFriends is to change some data (like a first name or last name attribute) in Address Book and wait for the change to be synchronized. It will automatically appear in SeeMyFriends. SeeMyFriends sync data are archived between two launches of the app in a subfolder of ~/Library/Application Support.The archiving is done using the HIArchive mechanism.

SeeMyFriend is using the Model-View-Controller paradigm in a Carbon application and through the use of an Controller object written in Objective-C (SMFWindowController). This object is managing the content of the main window, as well as interaction with SyncServices.

Document Revision History

Date Notes
2006-10-16Fixed compilation errors (bug #4471526)
2005-06-06Illustrates how to use SyncServices API in a Carbon (HLTB) based application

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.