cocoa: make sure app wakes up on file event

This commit is contained in:
Matthew Flatt 2011-11-25 09:55:03 -07:00
parent d3cbea068a
commit bc0c2075fd

View File

@ -75,7 +75,8 @@
#t] #t]
[-a _BOOL (application: [_id theApplication] openFile: [_NSString filename]) [-a _BOOL (application: [_id theApplication] openFile: [_NSString filename])
(set! got-file? #t) (set! got-file? #t)
(queue-file-event (string->path filename))] (queue-file-event (string->path filename))
(post-dummy-event)]
[-a _void (applicationDidFinishLaunching: [_id notification]) [-a _void (applicationDidFinishLaunching: [_id notification])
(unless got-file? (unless got-file?
(queue-start-empty-event))] (queue-start-empty-event))]