-
Notifications
You must be signed in to change notification settings - Fork 208
Add download support for MacGap #100
base: master
Are you sure you want to change the base?
Conversation
Shows downloads progress in Finder and the Downloads stack
Ooh! Sounds interesting. I'd really like you to add a note into the README.md explaining how to use your new stuff from the JavaScript side. Would you mind adding this? Alternatively, feel free to put that info in a comment here. We're probably going to stop putting all this kind of info in the README soon anyway, as it's growing too big. I hope to migrate it all to the Wiki soon. |
frame:(WebFrame *)frame | ||
decisionListener:(id < WebPolicyDecisionListener >)listener | ||
{ | ||
NSLog (@"%@", type); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove NSLog.
The current code can go download if browser detect a content type of attachment. But i think if there is a way to use javascript to control download will be better. Just like PhoneGap: |
Thanks for the update. I'll have a play with it over the long weekend. |
@@ -196,4 +196,25 @@ + (BOOL) isKeyExcludedFromWebScript:(const char*)name | |||
} | |||
|
|||
|
|||
/* | |||
* Download everything except HTML pages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason this needs to be mandatory for all use-cases?
Shows downloads progress in Finder and the Downloads stack