When should I use primitives in Objective-C instead of NSValue
subclasses? This code is certainly cleaner (I think) than using NSNumber:
float width = sliderOne.frame.size.width;
float totalWidth = width * 2 + 10;
but are there any drawbacks? Also, is it correct that I don't need to call release
or anything with primitives? Does the memory get freed when they go out of scope, then?