Thanks Jens, will try all that over the coming days

Op Jul 4, 2014, om 11:13 PM heeft Jens Alfke <j...@mooseyard.com> het volgende 
geschreven:

> 
> On Jul 4, 2014, at 1:24 PM, Diederik Meijer | Ten Horses 
> <diede...@tenhorses.com> wrote:
> 
>> I have no experience with this sort of thing, hopefully I can make that work 
>> with NSURLConnection or -Session..
> 
> If you register an NSURLProtocol, it will be used by anything (in your 
> process) that uses NSURLConnection or NSURLSession. That includes UIWebViews.
> 
> Basically, when you register a protocol class, it’ll be called for every 
> request and gets a chance to claim it or not. You’d just claim any request 
> where the NSURL’s host matched your custom domain. Then you have to handle 
> the request by returning an NSURLResponse and a sequence of NSData objects. 
> In your case you’d start up an NSURLConnection of your own (with the hostname 
> changed to a hardcoded IP address) and delegate to that.
> 
> —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

Reply via email to