开发者

Drag/Drop File from/in webview

I am making an application featured l开发者_JAVA技巧ike mac mail as in mac mail if we drop a file in message area then that file is as an attached file and we can drag that file to desktop and double click on the file to open it. I am using webview(I think webview is used in mac mail)

Can anybody suggest me how can I do this

Thanks Amit Battan


Subclass the NSWebView and implement NSDraggingDestination. I recommend you read thru the "Drag and Drop Programming Topics for Cocoa" section of the documentation to learn more about how to properly register for the NSPasteboard types you want. (NSFilenamesPboardType for OS X before 10.6)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜