Here is what I am doing now.. I just feel like I have an extra step in converting the buffer into NSData...malloc...free
uint sample = 0x04034b50; uint8_t buffer[sizeof(uint)]; [inputStream open]; [inputStream read: buffer maxLength:sizeof(buffer)]; NSData * d = [NSData dataWithBytes:buffer length:sizeof(buffer)]; uint * key = (uint *) malloc(sizeof(uint)); [d getBytes:key length:sizeof(uint)]; [inputStream close]; NSLog(@"%u = %u", *key, sample); free(key); _______________________________________________ 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 arch...@mail-archive.com