A long while back, i wrote an article on Reflection. C# to Objective-C - Part 6 : Reflection And the code in that article still holds true. As you know, reflection is really expensive but sometimes a necessary evil. However, its especially expensive for value types because of boxing and unboxing. I wrote another article on this topic a while ago as well. Going From C# To Objective-C: Boxing and Unboxing Basically, whenever you use reflection, Obj-c takes the value and wraps it in an NSValue object...(read more)
↧