Re: Cocoa-dev Digest, Vol 7, Issue 890

2010-09-08 Thread Kyle Sluder
On Wed, Sep 8, 2010 at 11:50 AM, Quincey Morris wrote: > So, the problem is not your 'isLessThanZero' method, but the calling code, > which is treating the returned value as an int (or something). Presumably the > calling code was compiled with an incompatible declaration of your method, or > o

Re: Cocoa-dev Digest, Vol 7, Issue 890

2010-09-08 Thread Quincey Morris
On Sep 8, 2010, at 11:07, Chris Tracewell wrote: > I am truly perplexed - the boolean YES is being returned as -256. I think my > problem is with how BOOL is being passed, cast, interpreted... I know it is > typedef, it's as if though something is getting "lost in translation. Take a > look at

Re: Cocoa-dev Digest, Vol 7, Issue 890

2010-09-08 Thread Chris Tracewell
On Sep 8, 2010, at 10:21 AM, cocoa-dev-requ...@lists.apple.com wrote: > The message in the 'if' ([theNumOne compare:theNumTwo]) is an invocation of > [NSNumber compare:], not [NSDecimalNumber compare:]. It's not absolutely > clear what is supposed to happen when the compare parameter is an insta