Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Using Syncrospector to Debug Your Application

Syncrospector is a debugging tool that you can use to inspect clients, the truth database, and the call history of sync sessions. This article uses the sample application, SimpleStickies, to demonstrate how to use Syncrospector. This article gives you a quick tour of Syncrospector and describes the basic debugging steps.

Contents:

Building and Running SimpleStickies
Viewing Sync Clients


Building and Running SimpleStickies

Build and run the SimpleStickies application to create some sample content for this tutorial.

  1. Open SimpleStickies.xcode, located in the StickiesExample/Examples/SimpleStickies1_TrickleSyncing folder.

  2. Click Build and Go in Xcode to launch the application.

SimpleStickies registers the Stickies schema and the SimpleStickies client. You can examine these changes to the state of the sync engine using Syncrospector.

Viewing Sync Clients

You can use Syncrospector to see if your client successfully registered with the sync engine.

  1. Launch Syncrospector, located in the StickiesExample/Applications folder.

  2. Select Clients from the left-side pull-down menu to see the registered clients.

    You should see SimpleStickies listed as one of the registered clients. Most of the client properties displayed by Syncrospector (described in Table 1)are set in the client description property list.

Table 1  Client Properties

Property

Description

Image

If you specified an icon in the client description, it appears in the first column and in the detail view if you select a client. The icon and display name are used in alert panels.

Display Name

The display name should be a user-friendly name of for the client.

Client Identifier

The client identifier needs to be unique, so reverse DNS-style naming is recommended.

Type

The type of client (app, server, or device) is displayed in the Type column. Most clients are of type "app" meaning an application. .Mac is an example of a server and an iPod is an example of a device. If .Mac is turned on, you see it listed as a server.

Last Sync

The last column displays the date the client last synced.



< Previous PageNext Page > Hide TOC


Last updated: 2007-07-11




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.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice