storing retrieveing Uint64 data
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