• 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: Chunk 1978 <email@hidden>
  • Date: Sat, 5 Dec 2009 21:08:50 -0500

the method that takes the CGPoint argument is called from touchesBegan
and touchesMoved.  the CGPoint method outputs touch coordinates and
the touches only register if the touch is within the frame of the
image.  for factoring purposes i want to be able to call the same
method from touchesEnded that will clear the output strings if there
is no point, but CGPointZero is a point.

On Sat, Dec 5, 2009 at 9:03 PM, Graham Cox <email@hidden> wrote:
>
> On 06/12/2009, at 12:59 PM, 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}
>
>
> Why would you want to do this? It just doesn't make any sense, and indicates a basic design problem. What are you really trying to do?
>
> --Graham
_______________________________________________

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

  • Follow-Ups:
    • Re: passing nothing to method with CGPoint argument
      • From: Graham Cox <email@hidden>
References: 
 >passing nothing to method with CGPoint argument (From: Chunk 1978 <email@hidden>)
 >Re: passing nothing to method with CGPoint argument (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: passing nothing to method with CGPoint argument
  • Next by Date: Re: passing nothing to method with CGPoint argument
  • Previous by thread: Re: passing nothing to method with CGPoint argument
  • Next by thread: Re: passing nothing to method with CGPoint argument
  • Index(es):
    • Date
    • Thread