Re: [Gtk-osx-users] Custom URL Handler



On Aug 25, 2010, at 7:45 PM, Phillip Heller wrote:

> 
> On Aug 25, 2010, at 8:59 PM, John Ralls wrote:
> 
>> 
>> On Aug 25, 2010, at 7:50 AM, Phillip Heller wrote:
>> 
>>> 
>>> If you're reading this, John, any chance we could get a method in OSXApplication to install a handler for NSURLProtocol?
>>> 
>> 
>> Hmm. My cursory reading of http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/URLLoadingSystem/Concepts/URLOverview.html#//apple_ref/doc/uid/20001834-BAJEAIEE
>> suggests that NSURLProtocol is only one class in the URL loading system, and that getting that system to interface cleanly to Gtk+ (which has its own system for loading URLs) isn't trivial. 
>> 
>> Does the Gtk+ code for loading your special URI not work?
> 
> Hmmh, I'm not familiar with this, do you have a pointer to it, and perhaps how it would be done in pygtk?

Nope. Try the appropriate PyGtk mailing list.

If it's not something that you can do in Gtk+ then either you shouldn't be trying or you should be writing the app's view and controller in Cocoa. Mixing two UI frameworks is asking for trouble.

Regards,
John Ralls





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]