Minor changes in she/osx/

This commit is contained in:
David Capello 2016-04-11 15:30:02 -03:00
parent 49b068cccc
commit df9c555c87

View File

@ -38,12 +38,11 @@
- (BOOL)application:(NSApplication*)app openFile:(NSString*)filename
{
she::Event ev;
ev.setType(she::Event::DropFiles);
std::vector<std::string> files;
files.push_back([filename UTF8String]);
she::Event ev;
ev.setType(she::Event::DropFiles);
ev.setFiles(files);
she::queue_event(ev);
return YES;