Re: cannot use macros like CGPointMake in xcode8 debugger?
Re: cannot use macros like CGPointMake in xcode8 debugger?
- Subject: Re: cannot use macros like CGPointMake in xcode8 debugger?
- From: email@hidden
- Date: Sat, 24 Sep 2016 07:58:03 -0400
> On Sep 24, 2016, at 2:12 AM, Patrick J. Collins <email@hidden> wrote:
>
> Hi everyone.
>
> I tried asking this on stackoverflow, but no one there has answered so I
> thought I'd ask it here.
>
> When using previous versions of XCode (7 and earlier), when a breakpoint has
> been reached, within the debugger I was able to do something like:
>
>> expr mySprite.position = CGPointMake(0,0);
>
> and I could then click play and see my sprite position update on the screen.
>
> Ever since updating to XCode 8, when I do this I get:
>
> error: call to 'CGPointMake' is ambiguous
> candidate function
> candidate function
>
> Why does this no longer work in XCode8, and how can I make it work?
Try:
expr mySprite.position = CGPoint(x: 0, y: 0)
They've made the Swift syntax for many of the Core Graphics APIs (and a few others such as Grand Central Dispatch) so they look more like object oriented code.
HTH,
Dave Reed
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden