sanshelly / wsdl2objc

Automatically exported from code.google.com/p/wsdl2objc
MIT License
0 stars 0 forks source link

dateWithString not called #116

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use a SOAP service that returns a date.

What is the expected output?
The ISO8601 date to be parsed and a date returned from e.g. NSDate 
deserializeNode

What do you see instead?
nil is returned.

What version of the product are you using? On what operating system?
0.7pre1

Please provide any additional information below.

DO NOT WRITE CATEGORIES WITH METHOD NAMES THAT MIGHT ALREADY EXIST
BECAUSE dateFromString ALREADY EXISTS, OBJECTIVE-C CALLS THAT
INSTEAD OF THE CATEGORY'S METHOD.

AT LEAST RENAME THE NSDate+ISO8601Parsing CATEGORY METHOD NAMES LIKE SO:
+ (NSDate *)dateWithISO8601String:(NSString *)str strictly:(BOOL)strict 
getRange:(out NSRange *)outRange;
+ (NSDate *)dateWithISO8601String:(NSString *)str strictly:(BOOL)strict;
ETC
TO AVOID NAME CONFLICTS AND AVOID THE ERROR WHERE OBJ-C CALLS THE WRONG METHOD.

YES, MY CAPS LOCK KEY IS STUCK.

Original issue reported on code.google.com by josh.dep...@gmail.com on 8 Oct 2010 at 12:39

GoogleCodeExporter commented 8 years ago
Fixed in revision 183.
Renamed dateForString and replaced usage of dateWithString with the suggested 
method dateWithISO8601String.

Please verify.

Original comment by hasse...@gmail.com on 28 Feb 2011 at 9:43