• 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
storing retrieveing Uint64 data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

storing retrieveing Uint64 data


  • Subject: storing retrieveing Uint64 data
  • From: julia Cline <email@hidden>
  • Date: Tue, 26 Dec 2006 08:25:34 -0800

I'm trying to capture a time using suggestions from list users :

UInt64 startTime = UnsignedWideToUInt64(AbsoluteToNanoseconds(UpTime()));


I'd like to store the caputred times in an array object and retrieve them later for calculating reaction times to an onscreen display.



I've tried using:

UInt64 startTime = UnsignedWideToUInt64(AbsoluteToNanoseconds(UpTime()));
printf (" \n\nstart time %llu  ", startTime);  //checking value
pass ++;
printf ("at pass = %d\n\n", pass);  //tracking iteration through method
[nextButtonPressed insertObject:  [NSNumber numberWithUnsignedLongLong: startTime] atIndex:pass]; //hopefully putting value into array
NSLog(@"\nafter storage starttime is %llu\n\n",[[nextButtonPressed objectAtIndex:pass] longLongUnsignedValue]);  //checking value to compare to original

The log output looks like this:

start time 73580042471882  at pass = 1

2006-12-26 08:16:43.544 WordView[5736]
after storage starttime is 4294967296

The value that I think I am storing is not the one that I am retrieveing.  Can anyone help me understand what is going on?

Also,  should I be using NSArrayController.  I discovered it with all its nifty actions, but i can't get it to instantiate and I haven't locate any documentation about it.  If I should use it, where can I find some references that discuse how to use it?

thanks,

Julia




_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: storing retrieveing Uint64 data
      • From: Nir Soffer <email@hidden>
    • Re: storing retrieveing Uint64 data
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: Should I use delegates or accessors?
  • Next by Date: Re: storing retrieveing Uint64 data
  • Previous by thread: Re: Re: OFRegularExpression Quantifier
  • Next by thread: Re: storing retrieveing Uint64 data
  • Index(es):
    • Date
    • Thread