I'm writing a class that uses the UIDevice class to obtain information about the device on which my application is running. My class queries certain properties from the [UIDevice currentDevice] and caches the returned NSStrings in class members.
On the simulator, for certain UIDevice properties -- 'name' and 'model' -- I'm getting NSStrings returned with retain counts of 2147483647. For the other properties I'm querying -- 'uniqueIdentifier', 'systemName' and 'systemVersion' -- I'm getting NSStrings with (proper) retain count of 1.
Additionally, when I run on my device, the behavior changes slightly in that the 'name' property suddenly works correctly and returns an NSString with retain count of 1. Although the 'model' property still returns an NSString with retain count of 2147483647.
Has anyone else seen this behavior? Is this a known issue?
On the simulator, for certain UIDevice properties -- 'name' and 'model' -- I'm getting NSStrings returned with retain counts of 2147483647. For the other properties I'm querying -- 'uniqueIdentifier', 'systemName' and 'systemVersion' -- I'm getting NSStrings with (proper) retain count of 1.
Additionally, when I run on my device, the behavior changes slightly in that the 'name' property suddenly works correctly and returns an NSString with retain count of 1. Although the 'model' property still returns an NSString with retain count of 2147483647.
Has anyone else seen this behavior? Is this a known issue?