Mac OS X Reference Library Apple Developer Connection spyglass button

ISyncFilter Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/SyncServices.framework
Availability
Available in Mac OS X v10.4 and later.
Companion guide
Declared in
ISyncFilter.h

Overview

ISyncFilter provides a set of standard filters that can be used by any client, and some utility methods for creating filters. You should never instantiate or subclass ISyncFilter directly.

If your application uses only a subset of the entities, attributes, and relationships defined in a schema, then you can restrict pulled records to that subset using filters. A filter is any object that conforms to the ISyncFiltering protocol. You set filters using the setFilters: ISyncClient method.

Use the methods in this class to create new filters by applying logical AND and OR binary operators on a collection of filters. Use the filterMatchingAllFilters: to apply an AND operator and filterMatchingAtLeastOneFilter: to apply an OR operator.

See Sync Services Programming Guide for more information on using filters.

Tasks

Creating and Initializing Instances

Class Methods

filterMatchingAllFilters:

Returns a filter that is the logical AND of the filters specified in the filters array.

+ (id <ISyncFiltering>)filterMatchingAllFilters:(NSArray *)filters

Discussion

All the filters are expected to conform to the ISyncFiltering protocol.

Availability
Declared In
ISyncFilter.h

filterMatchingAtLeastOneFilter:

Returns a filter that is the logical OR of the filters specified in the filters array.

+ (id <ISyncFiltering>)filterMatchingAtLeastOneFilter:(NSArray *)filters

Discussion

All the filters are expected to conform to the ISyncFiltering protocol.

Availability
Declared In
ISyncFilter.h


Last updated: 2006-07-07

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