Hi,

do you think using path component manipulation methods should work with URLs? I'd expect them to, since the two things are so closely related. I did not check on the mac, the core I am running is gnustep only and I use my mac less and less.

Example:

I try: serviceUrl = [[dbs serverUrl] stringByDeletingLastPathComponent];

serverUrl http://cs13-api.salesforce.com/services/Soap/u/25.0/00DW00000012fxX
service URL: http:/cs13-api.salesforce.com/services/Soap/u/25.0

as you may see the "http://"; lost one slash: i suppose it is being interpreted as path and got normalized, removing the //.

Is that correct or not? Or should I convert the string to a NSURL, use the function as "URLByDeletingPathExtension" and similar and then getting the URL String back? Those are 10.6 methods and since I plan a port to mac 10.4/10.5 I'd like to avoid them.

Riccardo

_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to