Defining custom mime type in WebView?
Defining custom mime type in WebView?
- Subject: Defining custom mime type in WebView?
- From: Ken Tozier <email@hidden>
- Date: Sun, 29 Feb 2004 04:11:40 -0500
I'd like to create a custom html tag (for use in an internal corporate
site) that's similar in functionality to the "<a href="">" tag but
instead of jumping to another page or opening another window, I'd like
to be able to send "open file" or "import file" messages with the url
of the clicked items to applications on the user's machine.
After reading all WebView related posts of the last few months, it
looks like the best solution would be to define and register a custom
mime type and a class to handle it. What I'm really confused about
though is how to represent this in the html.
I have complete control of the server side of the equation (through
PHP) and the client side (through my app) but don't know how to mark
those specific resources that will require this custom type in html.
Would this be in the ball park?
<mytag filepath="xxx/yyy" mime-type="mytag/open"
target-application="Adobe Illustrator"><img source="fi/fie/fo/fum">
etc...
A related question is, once a mime type is registered, does WebView
notify registered classes of every event that happens to that object?
There wouldn't be much point to this whole thing if my class isn't
notified of user clicks by WebView.
Thanks for any info,
Ken
_______________________________________________
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.