Re: NSURLProtocol

2015-04-11 Thread danchik
well, the simplest irl example I can think of why you would want an arbitrary protocol is this - imagine you have a plugin on you web page that can generate some custom images for user. Now you want to show those files in img tags (so some one else can nicely wrap them in html). How would you sh

Re: NSURLProtocol

2015-04-11 Thread Dan S
No, I mean I literally register a new protocol: xyz:// There are no typos because it is defined as a @"xyz" in the a single place in the header file, and all of the code refers to it by its define. When you go to my page at https://example.com/mypluginpage.html (for example) the Safari loads t

Re: NSURLProtocol

2015-04-11 Thread danchik
an npapi plugin on a web page, it registers a protocol handler > On Apr 11, 2015, at 2:26 AM, Mike Abdullah wrote: > > >> On 11 Apr 2015, at 02:28, Dan S wrote: >> >> Is behavior of NSURLProtocol changed with Safari 5.1? >> >> I have a plugin that registeres a protocol handler xyz:// for e

Re: NSButton Mouse Up/Down Events

2015-04-11 Thread Kyle Sluder
On Sat, Apr 11, 2015, at 08:30 AM, Dave wrote: > > I’d like to be able to do the same action that NSButton does on Mouse > Down on another object. > > For example: > > Button XButton Y > > > Mouse down on Button X, causes it to be highlighted, I want this same

Scattered NSProgress use

2015-04-11 Thread Daryle Walker
The examples from the Mavericks Foundation notes (seen >

NSButton Mouse Up/Down Events

2015-04-11 Thread Dave
Hi All, From a different thread: > On 8 Apr 2015, at 14:19, Uli Kusterer wrote: > > I presume you mean to react both to mouseDown and mouseUp events? Not touch > gestures on the trackpad? You'd have to subclass NSButton and override > NSResponder's mouseDown: and mouseUp: methods. buttons on

Re: NSURLProtocol

2015-04-11 Thread Mike Abdullah
> On 11 Apr 2015, at 02:28, Dan S wrote: > > Is behavior of NSURLProtocol changed with Safari 5.1? > > I have a plugin that registeres a protocol handler xyz:// for example Could clarify what exactly you mean by “plugin” here? > > It succeeds and I can see all the requests to files on web pa