> On Feb 22, 2019, at 8:39 AM, Alex Zavatone <z...@mac.com> wrote: > > self.loginURL = [NSURL URLWithString:@"/login" > relativeToURL:self.sharedData.webServicesURL]; // // WHY does this not work? > It does "/login -- https://qa-home.mrcooper.com/api > <https://qa-home.mrcooper.com/api>"
Because NSURL’s .description property has a stupid way of printing a relative URL. The actual URL is correct, as you’ll see if you do something like `po self.loginURL.absoluteString`. It should return ` https://qa-home.mrcooper.com/login` <https://qa-home.mrcooper.com/login%60>. Moral of the story: Always use .absoluteString to convert an NSURL to a string, never .description or something that calls it implicitly. —Jens _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com