views:

138

answers:

1
[actionMap setObject:@selector(actionNavPop) forKey:@"navPop"];

This doesn't work. NSDictionary can only hold objects, and a SEL type is not an object.

For number types you can do [NSNumber numberWithInt:123] but is there any sort of similar object wrapper for selectors?

+14  A: 

Use NSStringFromSelector() and NSSelectorFromString().

Rob Napier