Should I use NSNumber or string, for saving a simple "playerID number" that now is an integer because I want to save it with Core Data?
In my datamodel I've got a playerID set to Integer 16 but Core Data want's the NSNumber to work. This seems lika a lot of code for "nothing" - example;
NSInteger myValue = 1;
NSNumber *number = [NSNumber numberWithInteger:myValue];
p1.playerID = number;
// Instead of just;
p1.playerID = 1;
// or
p1.playerID.myIntValue;
Just wondering if it would not be easier to set it to string instead and then convert the value (playerID) back and forth as it's needed? Any words of wisdom (experience) on this? Thank's :-)