forked from gnustep/libs-steptalk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.st
38 lines (30 loc) · 814 Bytes
/
app.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[|
main
Environment loadModule:'AppKit'.
self implementProtocol:'NSApplicationDelegate'.
app := NSApplication sharedApplication.
app setDelegate:self.
app run.
!
awakeFromNib
textField setStringValue:'hello there'.
!
application:app openFile:file
Transcript showLine:('openFile:', file).
!
applicationDidFinishLaunching:not
o := NSMutableDictionary dictionary.
o setValue:self forKey:'NSOwner'.
a := NSBundle loadNibFile:'./app.gorm' externalNameTable:o withZone:nil.
!
windowWillClose:not
Transcript showLine:'window closed, terminate'.
app terminate:nil.
!
setTextField:sender
Transcript showLine:'setting text field from Gorm'.
textField := sender.
!
doSomeAction:sender
Transcript showLine:'executed some action'.
]