开发者

Adding additional functions when dragging/dropping file path into NSTextField

Thanks for the help.

NSTextField already supports what I need it to do: dragging a folder into it returns the folder's path, like this:

/Users/Me/Desktop/New folder

I want other stuff to happen upon completion of the drop. As a basic examp开发者_开发百科le - upon completion of the drop into a textField, a second textField returns "Path Accepted"

[statusTextField setStringValue:@"Path Accepted"];

How is this done?

Again thanks for the assistance.

Paul

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜