Over at In Cocoa do you prefer NSInteger or just regular int, and why?, there was mention of NSDouble and NSFloat, but I can’t see a reference for those in any documentation. If NSInteger‘s purpose is for architectural safety, what about other types such as double or float?
Over at In Cocoa do you prefer NSInteger or just regular int, and why?
Share
NSIntegerexists because theinttype varies in size between 32-bit and 64-bit systems.floatanddoubledon’t vary in size the same way, so there’s no need to have wrapper types for them.