Re: [Pyobjc-dev] Can't bridge UCConvertUTCDateTimeToCFAbsoluteTime
Brought to you by:
ronaldoussoren
|
From: Ben A. <be...@ar...> - 2007-11-27 13:16:31
|
On Nov 27, 2007, at 1:07 AM, Ronald Oussoren wrote: > > On 26 Nov, 2007, at 22:55, Ben Artin wrote: > >> >> On Nov 26, 2007, at 3:17 PM, blake wrote: >> >>>> The problem appears to be that no metadata exists for <CarbonCore/ >>> UTCUtils.h>. You might try running gen_bridge_metadata(1) on >>> CarbonCore.framework, or typecast UTCDateTime to int64_t instead. >> >> Also, documentation for UTCDateTime specifically says that it's wrong >> to access it at uint64_t, so that advice is incorrect. > > The advice is actually a good idea: just use 'Q' as the encoding for > struct UTCDate and you're set as long as the definition of UTCDate > doesn't change, and that's not likely to happen due to binary > compatibility constrains. I guess carrying it across the bridge as a uint64_t is OK as long as I don't try to do math with it as an integer? Thanks. -- <http://artins.org/ben> "Youth cannot know how age thinks and feels. But old men are guilty if they forget what it was to be young" -- Albus Dumbledore |