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