send selection back to Go
parent
2a3219c370
commit
8431fc1f27
@ -1,4 +1,4 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@interface MainViewController : NSViewController <NSOpenSavePanelDelegate>
|
||||
@interface MainViewController : NSViewController
|
||||
@end
|
||||
|
@ -1,6 +1,18 @@
|
||||
package ui
|
||||
|
||||
type UI interface {
|
||||
Init() error
|
||||
Run() error
|
||||
Run(chan Event) error
|
||||
}
|
||||
|
||||
type Event interface {
|
||||
isUIEvent()
|
||||
}
|
||||
|
||||
type event struct{}
|
||||
|
||||
func (e event) isUIEvent() {}
|
||||
|
||||
type SelectDirectoryEvent struct {
|
||||
Path string
|
||||
event
|
||||
}
|
||||
|
Loading…
Reference in New Issue