This works: NSString *fragment = .... NSString *absString = [ @"https://translate.google.com/#" stringByAppendingString: fragment ]; NSURL *url = [ [ NSURL alloc ] initWithString: absString ];
But I would like to use something like this: NSURL *url = [ [ NSURL alloc ] initWithScheme: @"https" host: @"translate.google.com" fragment: fragment ]; There is a method to get a fragment from an NSURL, but I cannot find anything to *set* or append a fragment. What am I missing? Gerriet. _______________________________________________ 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