• 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: NSInterger Infinity?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSInterger Infinity?


  • Subject: Re: NSInterger Infinity?
  • From: "Henry McGilton (Boulevardier)" <email@hidden>
  • Date: Thu, 18 Jun 2009 11:27:14 -0700


On Jun 18, 2009, at 10:39 AM, Chunk 1978 wrote:

agreed.  the reason i asked is because i saw this snippet of code:
repeatCount = 1e100f; and i just though that seems awfully ambiguous
and hoped for something a little more universal.

Nothing ambiguous at all --- it's about 2 * 10 ^ 82 times the current estimated age
of the Universe, and that ought to be Universal enough . . .



On Thu, Jun 18, 2009 at 1:35 PM, WT<email@hidden> wrote:
On Jun 18, 2009, at 7:02 PM, Chunk 1978 wrote:

i would like to set an AnimationRepeatCount to loop continuously.
what is an appropriate number to set?

You could use NSIntegerMax. Although finite, it's so large it might as well
be considered infinitely large, in the context in question. I doubt any user
will be running your application continuously for a long enough period of
time to exhaust an entire animation cycle of that length.

_______________________________________________

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: 
 >NSInterger Infinity? (From: Chunk 1978 <email@hidden>)
 >Re: NSInterger Infinity? (From: WT <email@hidden>)
 >Re: NSInterger Infinity? (From: Chunk 1978 <email@hidden>)

  • Prev by Date: Re: Group CGAffineTransform Animations?
  • Next by Date: Toggle Dock Icon
  • Previous by thread: Re: NSInterger Infinity?
  • Next by thread: Re: What is the best way to store some kind of identifying string in an interface builder object?
  • Index(es):
    • Date
    • Thread