Re: Cocoa method to determine if application is running on iPhone
Re: Cocoa method to determine if application is running on iPhone
- Subject: Re: Cocoa method to determine if application is running on iPhone
- From: MARC BLATT <email@hidden>
- Date: Tue, 9 Feb 2010 16:06:34 -0800
Thanks. Makes sense. Will do...
On Feb 9, 2010, at 4:05 PM, David Duncan wrote:
> There is, but it is just not recommended (you can test from UIDevice). Generally the concept is "test for what you need" because you don't know what the configuration will be. Two examples:
>
> 1) Someone adds a GPS unit to an iPod Touch that provides Compass heading information. Should you treat the device like an iPod or an iPhone?
>
> 2) Should removes the Camera from an iPhone. Should you treat it as an iPod or iPhone?
>
> For this and many more reasons it makes a lot more sense to design your application based on available capabilities rather than your perceived notion of what is an iPhone vs iPod Touch.
>
> On Feb 9, 2010, at 3:57 PM, MARC BLATT wrote:
>
>> Thanks. So I guess the answer is there's no simple [self isiPhone] or [self device] call that would return a constant like the OS version. Having two different devices (soon to be three) on this OS, I believe it would be a useful cocoa method. Think it's worth submitting a feature request?
>
> --
> David Duncan
> Apple DTS Animation and Printing
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden