开发者

Drop files into dockbar application

开发者 https://www.devze.com 2023-03-26 10:16 出处:网络
I开发者_如何学C would like to just drag a file over my application in the dockbar and use it in my application, preferably with some event like file_got_dropped or something in that wayJust override t

I开发者_如何学C would like to just drag a file over my application in the dockbar and use it in my application, preferably with some event like file_got_dropped or something in that way


Just override the method - (void)application:(NSApplication *)theApplication openFiles:(NSArray *)filenames inside your application's delegate class.

0

精彩评论

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

关注公众号