Giter Site home page Giter Site logo

Comments (5)

rawcreative avatar rawcreative commented on September 13, 2024

Added in 9318db2

from macgap2.

jeff-h avatar jeff-h commented on September 13, 2024

Awesome. Can you think of a way to implement registerForDraggedTypes?

from macgap2.

rawcreative avatar rawcreative commented on September 13, 2024

Why? Webview’s are already registered for all types..

On Jun 8, 2014, at 6:25 PM, jeff-h [email protected] wrote:

Awesome. Can you think of a way to implement registerForDraggedTypes?


Reply to this email directly or view it on GitHub.

from macgap2.

jeff-h avatar jeff-h commented on September 13, 2024

In my mind it would be useful to limit the receivable file types in most cases? For example, say the MacGap app is a Markdown editor; you only really want to accept dropped markdown files and ignore anything else, rather than allowing the drop and then deciding you don't want it.

It's a fine point, probably a future enhancement. I'm perhaps more interested in your input on how such a thing should be done in MG2. Would the array of allowed types go in the config file?

from macgap2.

rawcreative avatar rawcreative commented on September 13, 2024

There’s actually no need to do this, you can handle it all from JS. Putting something like that in would just mean someone would have to add/configure extra parameters, rather than just discarding what they don’t need when someone drops a file(s). As it stands right now since drag and drop is disabled, users have to preventDefault on the dragover and drop events anyway to avoid having the file replace the contents of the webview, adding that just seems like an unnecessary step IMO.

On Jun 8, 2014, at 6:44 PM, jeff-h [email protected] wrote:

In my mind it would be useful to limit the receivable file types in most cases? For example, say the MacGap app is a Markdown editor; you only really want to accept dropped markdown files and ignore anything else, rather than allowing the drop and then deciding you don't want it.

It's a fine point, probably a future enhancement. I'm perhaps more interested in your input on how such a thing should be done in MG2. Would the array of allowed types go in the config file?


Reply to this email directly or view it on GitHub.

from macgap2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.