Re: NSInterger Infinity?
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