资 源 简 介
Description
**Version: 0.91**
This is an EventBus i developed for iPhone, needed this in a game I was programming on, the game did not get completed but at least the EventBus is working. :D
The code is available in the repository or as a featured download to the right.
Please feel free to use it.
Instructions
Here is a couple of examples how you register as a listener, remove yourself and sends events.
```
import "EventHandler.h"
import "HelloEvent.h" // Precondition that there is a class named HelloEvent
import "ByeEvent.h" // Same for this class
-(void) AddListener
{
EventHandler* instance = [EventHandler getInstance];
[instance AddListener:self withSelector:@selector(ReceiveHelloEvent:) forEvent:[HelloEvent class]];
[instance AddListener:self withSelector:@selector(ReceiveByeEvent:) forEvent:[ByeEvent class]];
@t