Mac OS X Reference Library Apple Developer Connection spyglass button

ISyncSessionDriverDelegate Protocol Reference

Framework
/System/Library/Frameworks/SyncServices.framework
Availability
Available in Mac OS X v10.4 and later.
Companion guide
Declared in
ISyncSessionDriver.h

Overview

This is an informal protocol for the delegates of an ISyncSessionDriver object. You can optionally implement any of these methods to augment the behavior of a sync session. By implementing these methods, you can intervene before and after most phases of a sync session.

Tasks

Controlling Sync Behavior

Instance Methods

sessionDriver:didNegotiateAndReturnError:

Informs the receiver that the client did negotiate with the sync engine. (required)

- (BOOL)sessionDriver:(ISyncSessionDriver *)sender didNegotiateAndReturnError:(NSError **)outError

Parameters
sender

The object sending this message.

outError

An error if it occurs.

Return Value

NO if an error occurs and outError is set to an NSError object that describes the error; otherwise, YES.

Availability
  • Available in Mac OS X v10.6 and later.
Declared In
ISyncSessionDriver.h

sessionDriver:didPullAndReturnError:

Informs the receiver that changes were pulled from the sync engine. (required)

- (BOOL)sessionDriver:(ISyncSessionDriver *)sender didPullAndReturnError:(NSError **)outError

Discussion

If an error occurs, this method returns NO and sets outError to an NSError object that describes the error.

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
ISyncSessionDriver.h

sessionDriver:didPushAndReturnError:

Informs the receiver that client changes were pushed to the sync engine. (required)

- (BOOL)sessionDriver:(ISyncSessionDriver *)sender didPushAndReturnError:(NSError **)outError

Discussion

If an error occurs, this method returns NO and sets outError to an NSError object that describes the error.

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
ISyncSessionDriver.h

sessionDriver:didReceiveSyncAlertAndReturnError:

Informs the receiver that the client received a sync alert. (required)

- (BOOL)sessionDriver:(ISyncSessionDriver *)senderdidReceiveSyncAlertAndReturnError:(NSError **)outError

Parameters
sender

The object sending this message.

outError

An error if it occurs.

Return Value

NO if the client should not join; otherwise, YES.

Discussion

Implement this method to perform any setup before the sync session driver syncs. You should implement this method if you register for a sync alert handler and want the sync to be completely asynchronous; otherwise, the thread which handles the sync alert may block until the sync session starts.

Availability
  • Available in Mac OS X v10.6 and later.
Declared In
ISyncSessionDriver.h

sessionDriver:didRegisterClientAndReturnError:

Informs the receiver that a client was registered. (required)

- (BOOL)sessionDriver:(ISyncSessionDriver *)sender didRegisterClientAndReturnError:(NSError **)outError

Discussion

If an error occurs, this method returns NO and sets outError to an NSError object that describes the error.

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
ISyncSessionDriver.h

sessionDriver:willFinishSessionAndReturnError:

Informs the receiver that a session will be finished. (required)

- (BOOL)sessionDriver:(ISyncSessionDriver *)sender willFinishSessionAndReturnError:(NSError **)outError

Discussion

If an error occurs, this method returns NO and sets outError to an NSError object that describes the error.

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
ISyncSessionDriver.h

sessionDriver:willNegotiateAndReturnError:

Informs the receiver that the client will negotiate with the sync engine. (required)

- (BOOL)sessionDriver:(ISyncSessionDriver *)sender willNegotiateAndReturnError:(NSError **)outError

Parameters
sender

The object sending this message.

outError

An error if it occurs.

Return Value

NO if an error occurs and outError is set to an NSError object that describes the error; otherwise, YES.

Availability
  • Available in Mac OS X v10.6 and later.
Declared In
ISyncSessionDriver.h

sessionDriver:willPullAndReturnError:

Informs the receiver that changes will be pulled from the sync engine. (required)

- (BOOL)sessionDriver:(ISyncSessionDriver *)sender willPullAndReturnError:(NSError **)outError

Discussion

If an error occurs, this method returns NO and sets outError to an NSError object that describes the error.

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
ISyncSessionDriver.h

sessionDriver:willPushAndReturnError:

Informs the receiver that client changes will be pushed to the sync engine. (required)

- (BOOL)sessionDriver:(ISyncSessionDriver *)sender willPushAndReturnError:(NSError **)outError

Discussion

If an error occurs, this method returns NO and sets outError to an NSError object that describes the error.

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
ISyncSessionDriver.h

sessionDriverDidCancelSession:

Informs the receiver that a session was cancelled. (required)

- (void)sessionDriverDidCancelSession:(ISyncSessionDriver *)sender

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
ISyncSessionDriver.h

sessionDriverDidFinishSession:

Informs the receiver that a session was finished. (required)

- (void)sessionDriverDidFinishSession:(ISyncSessionDriver *)sender

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
ISyncSessionDriver.h

sessionDriverWillCancelSession:

Informs the receiver that a session will be cancelled. (required)

- (void)sessionDriverWillCancelSession:(ISyncSessionDriver *)sender

Availability
  • Available in Mac OS X v10.5 and later.
Declared In
ISyncSessionDriver.h


Last updated: 2009-07-29

Did this document help you? Yes It's good, but... Not helpful...