• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cannot use macros like CGPointMake in xcode8 debugger?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: cannot use macros like CGPointMake in xcode8 debugger?
      • From: "Patrick J. Collins" <email@hidden>
References: 
 >cannot use macros like CGPointMake in xcode8 debugger? (From: "Patrick J. Collins" <email@hidden>)

  • Prev by Date: cannot use macros like CGPointMake in xcode8 debugger?
  • Next by Date: Re: cannot use macros like CGPointMake in xcode8 debugger?
  • Previous by thread: cannot use macros like CGPointMake in xcode8 debugger?
  • Next by thread: Re: cannot use macros like CGPointMake in xcode8 debugger?
  • Index(es):
    • Date
    • Thread