• 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: Graham Cox <email@hidden>
  • Date: Sun, 6 Dec 2009 21:56:47 +1100

On 06/12/2009, at 1:08 PM, Chunk 1978 wrote:

>  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.


Can't you just define an 'impossible' point value to act as a sentinel? Something very negative for example.

--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

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>)
 >Re: passing nothing to method with CGPoint argument (From: Chunk 1978 <email@hidden>)

  • Prev by Date: Re: Best way to hook into the run loop?
  • Next by Date: Re: Best way to hook into the run loop?
  • 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