• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Defining custom mime type in WebView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Defining custom mime type in WebView?
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: Some voodoo curses app's launching, icon display
  • Next by Date: Re: Collections [was NSCollectionConroller ?]
  • Previous by thread: Re: Error messages
  • Next by thread: Re: Defining custom mime type in WebView?
  • Index(es):
    • Date
    • Thread