首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 一个“事件总线”图书馆

一个“事件总线”图书馆

  • 资源大小:34.94 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: iphone objective-c event EventBus ObjC

资 源 简 介

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

文 件 列 表

Classes
.DS_Store
.svn
EventHandler.h
EventHandler.m
UnitTest
eventbus-niblvl50.xcodeproj
.svn
Niblit.mode1v3
Niblit.pbxuser
project.pbxproj
eventbus_niblvl50_Prefix.pch
UnitTest-Info.plist
VIP VIP
  • 睥睨 1天前 成为了本站会员

  • ? 1天前 成为了本站会员

  • IATWAY 2天前 成为了本站会员

  • 大智若愚 2天前 成为了本站会员

  • Mason 2天前 成为了本站会员

  • 2天前 成为了本站会员

  • Half_Punch 3天前 成为了本站会员

  • liqing71718 3天前 成为了本站会员

  • 伟国 3天前 成为了本站会员

  • songy 3天前 成为了本站会员

0.176832s