bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #34744] [NSDate timeIntervalSinceDate:nil] throws an exception


From: Richard Frith-Macdonald
Subject: [bug #34744] [NSDate timeIntervalSinceDate:nil] throws an exception
Date: Fri, 04 Nov 2011 06:16:31 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22

Follow-up Comment #1, bug #34744 (project gnustep):

I have a problem with this one ...

Unless you know better, the behavior for this case is simply undocumented, and
OSX usual action when passed an invalid argument (and it's pretty hard to
argue that passing a non-date to a method which specifically says it expects a
date is anything other than an application error) is to raise an
NSInvalidArgumentException.

But ... we generally try to mirror Apple's current implementation, so maybe we
should simply remove the check for an invalid argument here (and replace it if
necessary  later if/when Apple changes OSX)?

Have you tried reporting it as a bug to Apple?  Most likely they'd say the
behavior is simply undefined, but they might decide to change it.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34744>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]