[Webkit-unassigned] [Bug 49170] WebKit API on Mac uses informally-deprecated NSCalendarDate

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 9 05:06:01 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=49170





--- Comment #3 from Christiaan Hofman <cmhofman at gmail.com>  2010-11-09 05:06:01 PST ---
AFAICS changing the explicit NSCalendarDate class in the API (for orderedItemsLastVisitedOnDay:) would not break anything: NSCalendarDate objects would still be accepted, while possibly passing an NSDate in an old version of WebKit would also not break anything, as the only method that is ever used is the NSDate method timeIntervalSinceReferenceDate. The only problem I can imagine is that code would get different objects from orderedLastVisitedDays. The way to handle this (in general) is to deprecate this method and still support it, but in its place provide a new method that does the right thing returning NSDate objects (call it orderedLastVisitedDates, or just lastVisitedDays).  As for the internal/private methods (ageLimitDate, _lastVisitedDate), there should be no discussion.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list