URL opening delegation
URL opening delegation
- Subject: URL opening delegation
- From: "Murali Krishna" <email@hidden>
- Date: 6 Dec 2004 17:05:23 -0000
Hi,
I am trying to develop an application which needs to handle a protocol of type
downloadurl://x/y/one.xml
Here instead of the generic http:// we say it to be downloadurl://
I set my application which is being developed in Cocoa to be opened
whenever the browser is requested any URI of type downloadurl://
I use internet config to specify that my application is to be delegated whenever
a request of type downloadurl:// is tried from any of the browsers.
The code for it would be something like this
ICSetPref(the_icInstance, kICHelperDOWNLOADURL, icAttr, (Ptr) &
targetSpec, dataSize);
Here internet config is being used to set the helper application for the new
protocol which is specified in kICHelperDOWNLOADURL.
This works fine, my application is invoked whenever downloadurl:// is typed in
browsers but I have a problem, I was expecting Application's delegate
openFile: method to be invoked with the URI as parameter but I have been
trying for a long time but it doesn't invoke any of the open methods of the
delegate. Also I tried to record the AppleScript which may be happening but,
unfortunately it too doesn't show anything.
My question to the list is which method of the NSApplication or its delegate
would be called in this case, if browsers are asking my app to handle this
protocol.
Any suggestions, solutions or leads would be very helpful.
Thanks
MKB
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden