Selector name for NSArray literal constructor, like @[]?

Saturday, May 3, 2014

Its been while llvm added Objective-C literal syntax for NSDictionary, NSArray, NSNumber, and boolean literals, like @[object1, object2,], @{key,value}.


I'm looking for selector name associated to say, @[].


I tried to find out using following code for NSArray but didn't see selector associated to for @[].



unsigned int methodCount = 0;
Method * methods = class_copyMethodList([NSArray class], &methodCount);

NSMutableArray * nameOfSelector = [NSMutableArray new];
for (int i = 0 ; i < methodCount; i++) {
[nameOfSelector addObject:NSStringFromSelector(method_getName(methods[i]))];
}






http://ift.tt/1q27TV3