Re: NSDecimal chokes on very small numbers

2009-12-08 Thread Tom Bernard
Bernard tombern...@bersearch.com on 11/21/09 7:41 AM, Tom Bernard wrote: Before reporting this as a bug to Apple's Bug Reporter, I would like feedback from the community. I am working in Leopard. Has this been fixed in Snow Leopard? Is there something else I am overlooking? NSDecimalPower

NSDecimal chokes on very small numbers

2009-11-21 Thread Tom Bernard
oneEminusThirtyFiveToFourthPower = 1000 0 err = 0 Tom Bernard tombern...@bersearch.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: extracting the mantissa for a NSDecimal

2009-11-21 Thread Tom Bernard
to a file and retrieves them. I plan to test these apps on modern and legacy hardware to verify the endian question. But for now, that is a side-track for me. Has anyone already done such a test? ++ Tom Tom Bernard tombern...@bersearch.com on 11/20/09 1:02 PM, Greg Guerin wrote: Message: 6 Date

Re: extracting the mantissa for a NSDecimal

2009-11-20 Thread Tom Bernard
= [NSData dataWithBytes:anNSDecimal length:sizeof(NSDecimal)]; gives you an NSData object suitable for an NSDictionary without having to muck around with NSDecimal's private fields. ++ Tom Tom Bernard tombern...@bersearch.com --__--__-- Message: 11 Date: Tue, 29 Oct 2002 12:37:35 -0600

NSNumberFormatter unsigned long long bug?

2008-10-09 Thread Tom Bernard
*lLongMaxPlusOneString = [formatter stringFromNumber:lLongMaxPlusOneNumber]; // debugger shows -9,223,372,036,854,775,808 [unsignedLongLongTextField3 setStringValue:lLongMaxPlusOneString]; } Thanks in advance. ++ Tom Tom Bernard [EMAIL PROTECTED

Re: NSCalendarDate to be deprecated

2008-08-27 Thread Tom Bernard
again to you and to Eliza Block for your suggestions. ++ Tom Tom Bernard [EMAIL PROTECTED] on 8/22/08 12:00 AM, Ryan McGann at [EMAIL PROTECTED] wrote: As written, 70 microseconds. When I set the calendar's time zone to GMT, the time drops to 43 microseconds. Since my app will only work

Re: NSCalendarDate to be deprecated

2008-08-19 Thread Tom Bernard
As written, 70 microseconds. When I set the calendar's time zone to GMT, the time drops to 43 microseconds. Since my app will only work with dates in GMT, this is a plus. Even so, 40 microseconds is far slower than the 7 - 8 microseconds offered by -[NSCalendarDate dayOfYear]. Unless someone has

NSCalendarDate to be deprecated

2008-08-18 Thread Tom Bernard
microseconds (The above times include 0.4 microseconds attributable to the testing overhead.) Since Apple's engineers would not throw away a perfectly good object without providing something better, I must be doing things the hard way. What is the easy way? Thanks in advance. ++ Tom Tom Bernard [EMAIL

File types opened by NSDocument architecture

2008-07-22 Thread Tom Bernard
/ keyNSDocumentClass/key stringLIVDocument/string /dict ... /array The info.plist includes a dictionary for each of the above listed types. Thanks in advance. Tom Bernard [EMAIL PROTECTED] ___ Cocoa-dev mailing