NSObjectのperformSelectorは、Objective-Cのオブジェクトしか渡せないので、int型の値を渡すだけでもたいへんです。NSObjectを継承したInteger型みたいなのを作るか、NSValueを使っているひとが多いと思います。 今回は、intでもstd::vectorでも、C++のオブジェクトをなんでも渡せる、performSelectorの代わりとなる関数を作りました。こんな感じです: #import <Foundation/Foundation.h> #import <boost/mpl/identity.hpp> #import <iostream> #import <vector> #import <boost/range/algorithm/for_each.hpp> #import <boost/lambda/lambda.hpp> #import