JavaScriptでユーザからのイベントを受け取ってホゲホゲ、という処理は大体次のようなスタイルで書く。なお、jQueryとか使っていても概要は同じ。 el.addEventListener("eventName", function(evt) { // do something }, false); iOS appでこのようなイベントハンドーリング的処理を行う場合、基本的にはdelegateを使う。 -(id)init { self = [super init]; if ( self != nil ) { Foo* foo = [[Foo alloc] init]; foo.delegate = self; Bar* bar = [[Bar alloc] initWithsomething:nil target:self selector:@selector(didReceiveBar