I'm trying to store a uint64_t in an NSNumber object, but when I try to retrieve the value of the object, I get 0.

- (void)updateLastEventId:(uint64_t *) eventId
{
    printf("eventId %llu \n", eventId);
   //This results in something like:
lastEventId = [NSNumber numberWithUnsignedLongLong:(uint64_t *)eventId]; printf("retrieved eventId %llu \n", [lastEventId unsignedLongLongValue]);
}


The result of this is something like:

eventId 72915006949163008
retrieved eventId 0

Does someone know how to do this properly? I've looked up the typedef statement for uint64_t and it is:
typedef unsigned long long uint64_t;

Thanks,
-Adam
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to