On 31 Jan 2014, at 12:45 AM, KappA <rejek...@gmail.com> wrote: > I came across this the other day. Have you already looked at this? > > http://stackoverflow.com/questions/448162/determine-device-iphone-ipod-touch-with-iphone-sdk
Very strange that nobody (until I did) noticed that if you want to convert from one unique constant NSString to another, you use an NSDictionary, not a cascade of if ([a isEqualToString: @"b"]) return @"c"; And if you load a plist instead of hardcoding every damn pair, your code gets a lot simpler. Sigh. This is always the point where I miss something crucial… — F _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com