[Mono-dev] I'd like to drop some files to NSTableView.

masayuki mu197003 at gmail.com
Tue Aug 2 11:58:21 EDT 2011


Hello,

Now I'm developping an application using NSTableView. And I'd like to drop
some files from Finder.
I understood to use NSTableView, NSTableViewDataSource, but I don't know how
to use those classes and methods.

I add the method "NSTableView.RegisterForDraggedTypes" in AwakeFromNib like
this.

    this.myTableView.RegisterForDraggedTypes(new string[] {
        NSPasteboard.NSFilenamesType.ToString()}
    );

But I can not drop files to my application's NSTableView(myTableView).

How should I do to realize the feature "Drag & Drop from Finder" using
monomac.
I'd like to get the filepath from dropped files.

Please give me your knowledge.

Thanks.

Masayuki


--
View this message in context: http://mono.1490590.n4.nabble.com/I-d-like-to-drop-some-files-to-NSTableView-tp3712832p3712832.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list