-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
objective-s.scroll
29 lines (25 loc) · 967 Bytes
/
objective-s.scroll
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
import ../code/conceptPage.scroll
id objective-s
name Objective-S
appeared 1980
tags pl
website https://objective.st/
country Germany
originCommunity https://github.com/mpw/Objective-Smalltalk/issues
reference https://news.ycombinator.com/item?id=32444300
example
-<void>deleteFile:filename {
thumbs := self thumbsView subviews.
viewsToRemove := thumbs selectWhereValueForKey:'filename' isEqual:filename.
aView := viewsToRemove firstObject.
UIView animateWithDuration:0.4
animations: { aView setAlpha: 0.0. }
completion: { aView removeFromSuperview.
UIView animateWithDuration: 0.2
animations: { self thumbsView layoutSubviews. }
completion: { 3 }.
}.
url := self urlForFile:aFilename.
NSFileManager defaultManager removeItemAtURL:url error:nil.
self thumbsView afterDelay:0.4 | setNeedsLayout.
}