Monday, 13 June 2011

Numbers numbers and more Numbers

Whilst writing the object classes for my app, I came across the quandary which tipe of number attribute to use. NSNumber NSInteger or good old int. To my knowledge int is the classic c int. Where as NSNumber is the objective-c type which has more functionality. NSInteger is the same as NSNumber but long. I think the answer is you cant beet a good old int.

No comments:

Post a Comment