We've got a model in our iOS with an id property. Here's what we're currently using (this is iOS 5 by the way).
@property (nonatomic, assign) int userID;
Seems to be working fine so far. I'm wondering if this will cause any problems going forward.
Example: I understand that this means that the ID property itself could not be stored into a plist. However, this is a property of an NSObject. If we were storing anything into a file/core data/nsuserdefaults/whatever it would likely be the entire object and not just this property.
I guess my question is ... are we going to cause ourselves any problems by storing this as an int as opposed to an NSNumber?
Secondly, what would be the difference in storing this as an NSInteger instead. I understand that it's just a type def to either long or int depending in the architecture. Since we're only targeting iPhone does it matter that it's just set to int? Doesn't seem like it would make any difference in that case.