• 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: passing nothing to method with CGPoint argument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing nothing to method with CGPoint argument


  • Subject: Re: passing nothing to method with CGPoint argument
  • From: Frederik Slijkerman <email@hidden>
  • Date: Sat, 05 Dec 2009 23:21:39 -0300

The usual solution is to change the method signature to accept a CGPoint* argument instead, so you can also pass NULL / nil separately from any point.

Best regards,
Frederik Slijkerman


Chunk 1978 wrote:
i have an method that takes a CGPoint as an argument.  i would like to
call the method without supplying a CGPoint, but i can't pass nil or
null.  i can pass CGPointZero, but that is still a point: {0, 0}
_______________________________________________

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

_______________________________________________

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


References: 
 >passing nothing to method with CGPoint argument (From: Chunk 1978 <email@hidden>)

  • Prev by Date: Re: passing nothing to method with CGPoint argument
  • Next by Date: Re: Question about aliasing (analog clock hands)
  • Previous by thread: Re: passing nothing to method with CGPoint argument
  • Next by thread: Array Controller "Select Inserted Objects" just stopped working
  • Index(es):
    • Date
    • Thread