CDEvent Class Reference
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
-
identifier
The event identifier.
property -
date
An approximate date and time the event occured.
property -
URL
The URL of the item which changed.
property -
flags
The flags of the event.
property -
+ eventWithIdentifier:date:URL:flags:
Returns an
CDEvent
created with the given identifier, date, URL and flags. -
– initWithIdentifier:date:URL:flags:
Returns an
CDEvent
object initialized with the given identifier, date, URL and flags.
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
Declared In
CDEvent.h
identifier
The event identifier.
@property (readonly) CDEventIdentifier identifier
Return Value
The event identifier.
Availability
1.0.0
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.
See Also
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