Inherits from NSObject
Conforms to NSCoding
NSCopying
Declared in CDEvent.h

Overview

An Objective-C wrapper for a FSEvents event data.

@note Inpired by SCEvent class of the SCEvents project by Stuart Connolly. @note The class is immutable.

Tasks

Properties

URL

The URL of the item which changed.

@property (readonly) NSURL *URL

Return Value

The URL of the item which changed.

Availability

1.0.0

Discussion

The URL of the item which changed.

Declared In

CDEvent.h

date

An approximate date and time the event occured.

@property (readonly) NSDate *date

Return Value

The approximate date and time the event occured.

Availability

1.0.0

Discussion

An approximate date and time the event occured.

Declared In

CDEvent.h

flags

The flags of the event.

@property (readonly) FSEventStreamEventFlags flags

Return Value

The flags of the event.

Availability

1.0.0

Discussion

The flags of the event.

The flags of the event as returned by FSEvents.

Declared In

CDEvent.h

identifier

The event identifier.

@property (readonly) CDEventIdentifier identifier

Return Value

The event identifier.

Availability

1.0.0

Discussion

The event identifier.

The event identifier as returned by FSEvents.

Declared In

CDEvent.h

Class Methods

eventWithIdentifier:date:URL:flags:

Returns an CDEvent created with the given identifier, date, URL and flags.

+ (CDEvent *)eventWithIdentifier:(NSUInteger)identifier date:(NSDate *)date URL:(NSURL *)URL flags:(FSEventStreamEventFlags)flags

Parameters

identifier

The identifier of the the event.

date

The date when the event occured.

URL

The URL of the item the event concerns.

flags

The flags of the event.

Return Value

An CDEvent created with the given identifier, date, URL and flags.

Availability

1.0.0

Discussion

Returns an CDEvent created with the given identifier, date, URL and flags.

Declared In

CDEvent.h

Instance Methods

initWithIdentifier:date:URL:flags:

Returns an CDEvent object initialized with the given identifier, date, URL and flags.

- (id)initWithIdentifier:(NSUInteger)identifier date:(NSDate *)date URL:(NSURL *)URL flags:(FSEventStreamEventFlags)flags

Parameters

identifier

The identifier of the the event.

date

The date when the event occured.

URL

The URL of the item the event concerns.

flags

The flags of the event.

Return Value

An CDEvent object initialized with the given identifier, date, URL and flags.

Availability

1.0.0

Discussion

Returns an CDEvent object initialized with the given identifier, date, URL and flags.

Declared In

CDEvent.h