Re: predefined macro iOS vs OS X
Re: predefined macro iOS vs OS X
- Subject: Re: predefined macro iOS vs OS X
- From: Clark Smith Cox III <email@hidden>
- Date: Sat, 17 Aug 2013 13:52:49 -0700
On Aug 16, 2013, at 10:04, Kyle Sluder <email@hidden> wrote:
> On Aug 16, 2013, at 12:41 PM, "Gerriet M. Denkmann" <email@hidden> wrote:
>
>>
>> On 16 Aug 2013, at 22:59, Kyle Sluder <email@hidden> wrote:
>>
>>>
>>> Xcode does know this. But if you're building for 32-bit OS X, it will correctly complain.
>>
>> When I build for Mac OS X CGRect is accepted.
>> But when I build for iOS then NSRect creates "Use of undeclared identifier "NSRect" did you mean "NSSet""
>
> Stop using NSRect in your method prototypes and just use CGRect.
Or just define NS_BUILD_32_LIKE_64. Doing so will cause NSRect to be defined as a typedef for CGRect.
--
Clark Smith Cox III
email@hidden
_______________________________________________
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