Re: nsurlprotocol subclass
Re: nsurlprotocol subclass
- Subject: Re: nsurlprotocol subclass
- From: Dominik Pich <email@hidden>
- Date: Mon, 05 Jul 2004 18:52:08 +0200
email@hidden wrote:
how do I register a nsurlprotocol subclass on a system wide basis? I can make it work within an app,
but not for all apps.
also, how do I define a new scheme and which app to use to handle it? if I want to have mail.app be
able to recognize <myscheme://something> and be able to double click it to open it.
thanks
stephane
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
for own scheme you have to do 2 things:
1. add CFBundleURLTypes key
<
http://developer.apple.com/documentation/MacOSX/Conceptual/
BPRuntimeConfig/Concepts/PListKeys.html#//apple_ref/doc/uid/20001431/
TPXREF115>
Fill that out in your project's Info.plist file and that ought to do it.
2. On 10.3 use launch services' LSRegisteUrl function to
register/unregistet dynamicly
Regards,
Dominik
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.