views:

41

answers:

0

Hi all,

I am working on mac mail like feature- 1. dragging a file on body of message being composed and showing it as icon, over it. 2. dropping the icon of file from message body back to desktop or to any folder, so that it gets downloaded in it.

I am able to implement the first point using NSTextView and calling method: -(void)setImportGraphics: with parameter YES... but in second point I am caught! whenever I try to drag the icon out of text view it appears as "Untitled clipping" in destination folder.

I tried to do some search over net and found this link: http://lists.apple.com/archives/Cocoa-dev/2004/May/msg01813.html :(

Can anyone help me to resolve the 2nd point so that in place of "Untitled clipping" actual file gets downloaded to destination folder??

Thanks,

Miraaj