Can't NSURLProtocol help you here?? Docs: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURLProtocol_Class/
Tutorial: http://www.raywenderlich.com/59982/nsurlprotocol-tutorial > You know how you can click links in email, and heck, to open them in > Safari (or whatever browser)? Is there any way to write an extension of > some sort that can intercept this and re-write the URL? I tried to write a > filter in Safari proper for the URL that the user pastes into the address > bar, but Safari plug-ins don't have access to that. > > I want to write a thing to strip all the utm_* parameters off the URLs. > > What about intercepting the clipboard and rewriting text there? > > TIA, > > -- > Rick Mann > rm...@latencyzero.com > > > > _______________________________________________ > > 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/diederik%40tenhorses.com > > This email sent to diede...@tenhorses.com _______________________________________________ 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