How to convert NSAppleEventDescriptor type 'ldt' to NSDate in Cocoa?
NSLog(@"%@",eventDescriptor);
shows <NSAppleEventDescriptor: 'ldt '($90EFCFC700000000$)>
How do i convert this to NSD开发者_如何学Cate?
It's probably a LongDateTime value, so you'd extract the data as LongDateTime, then maybe pass it through UCConvertLongDateTimeToCFAbsoluteTime
and then use +[NSDate dateWithTimeIntervalSinceReferenceDate:]
.
精彩评论