Three's a charm. Yes, you're right (almost, you have to say (someInfo == null ? null: new NSDictionary(someInfo, false))).

Cheers, Anjo

Am 29.10.2007 um 19:56 schrieb Art Isbell:

On Oct 29, 2007, at 5:30 AM, Anjo Krank wrote:

Actually, to be able to compile, you have to write:

public WORequest createRequest(String aMethod, String aURL, String anHTTPVersion, Map someHeaders, NSData aContent, NSDictionary someInfo) { return _createRequest(aMethod, aURL, anHTTPVersion, new NSDictionary(someHeaders, false), aContent, someInfo);
        }


With the original question being about overriding both WO 5.3 and 5.4 versions of WOApplication's createRequest(), the above method wouldn't override the WO 5.4 version because the method signatures don't match. Is this what you intended?

public WORequest createRequest(String aMethod, String aURL, String anHTTPVersion, Map someHeaders, NSData aContent, Map someInfo) { return _createRequest(aMethod, aURL, anHTTPVersion, new NSDictionary(someHeaders, false), aContent, new NSDictionary (someInfo));
        }

Aloha,
Art

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/krank% 40logicunited.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to