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

Re: extracting the mantissa for a NSDecimal

2009-11-21 Thread Tom Bernard
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

NSDecimal chokes on very small numbers

2009-11-21 Thread Tom Bernard
eEminusThirtyFive = 0.001 oneEminusThirtyFiveToFourthPower = 10000000 00000 err = 0 Tom Bernard tombern...@bersearch.com ___ Cocoa-dev mai

Re: extracting the mantissa for a NSDecimal

2009-11-20 Thread Tom Bernard
sData = [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,

NSNumberFormatter unsigned long long bug?

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

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.

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 an

NSCalendarDate to be deprecated

2008-08-18 Thread Tom Bernard
rForDate3(): 74.5191 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 adva

File types opened by NSDocument architecture

2008-07-22 Thread Tom Bernard
leTypeOSTypes gif CFBundleTypeRole Editor LSTypeIsPackage NSDocumentClass LIVDocument ... The info.plist includes a dictionary for each of the above listed types. Th