XuniEvent Class Reference

Conforms to *
:
EventArgsType
XuniEventArgs
__covariant
Declared in Event.h

Overview

Base class for event.

  handlers

Gets or sets the mutable array of handlers.

@property NSMutableArray<XuniEventHandler<EventArgsType> *> *handlers

Discussion

Gets or sets the mutable array of handlers.

Declared In

Event.h

– addHandler:forObject:

Add handler with specified object.

- (void)addHandler:(void ( ^ ) ( XuniEventContainer<EventArgsType> *eventContainer ))handler forObject:(NSObject *)this

Parameters

handler

the handler.

this

this object.

Discussion

Add handler with specified object.

Declared In

Event.h

– removeHandler:forObject:

Remove handler with specified object.

- (void)removeHandler:(void ( ^ ) ( XuniEventContainer<EventArgsType> *eventContainer ))handler forObject:(NSObject *)this

Parameters

handler

the handler.

this

this object.

Discussion

Remove handler with specified object.

Declared In

Event.h

– removeHandlersForObject:

Remove handler with specified object.

- (void)removeHandlersForObject:(NSObject *)this

Parameters

this

this object.

Discussion

Remove handler with specified object.

Declared In

Event.h

– removeAllHandlers

Remove all handlers.

- (void)removeAllHandlers

Discussion

Remove all handlers.

Declared In

Event.h

– raise:withArgs:

Raise sender with arguments.

- (void)raise:(NSObject *)sender withArgs:(EventArgsType)args

Parameters

sender

the sender object.

args

the arguments.

Discussion

Raise sender with arguments.

Declared In

Event.h