Fix word style, and NSOpenPanel crash
parent
7b1cdc1e31
commit
c1803e1a4e
|
@ -1,7 +1,5 @@
|
||||||
- remove F_USERENV rel
|
- remove F_USERENV rel
|
||||||
- cocoa exceptions are broken
|
|
||||||
- method ordering and interpreter algorithm sections need updates
|
- method ordering and interpreter algorithm sections need updates
|
||||||
- run file dialog is broken
|
|
||||||
- update walker for new interpreter
|
- update walker for new interpreter
|
||||||
- quotations should store their originating word
|
- quotations should store their originating word
|
||||||
- core foundation should use unicode strings
|
- core foundation should use unicode strings
|
||||||
|
|
|
@ -9,12 +9,11 @@ sequences ;
|
||||||
dup 1 [setCanChooseFiles:]
|
dup 1 [setCanChooseFiles:]
|
||||||
dup 0 [setCanChooseDirectories:]
|
dup 0 [setCanChooseDirectories:]
|
||||||
dup 1 [setResolvesAliases:]
|
dup 1 [setResolvesAliases:]
|
||||||
dup 1 [setAllowsMultipleSelection:]
|
dup 1 [setAllowsMultipleSelection:] ;
|
||||||
[autorelease] ;
|
|
||||||
|
|
||||||
: NSOKButton 1 ;
|
: NSOKButton 1 ;
|
||||||
: NSCancelButton 0 ;
|
: NSCancelButton 0 ;
|
||||||
|
|
||||||
: open-panel ( -- paths )
|
: open-panel ( -- paths )
|
||||||
<NSOpenPanel> dup f [runModalForTypes:] NSOKButton =
|
<NSOpenPanel> dup f [runModalForTypes:] NSOKButton =
|
||||||
[ [filenames] CF>array [ CF>string ] map ] [ f ] if ;
|
[ [filenames] CF>array [ CF>string ] map ] [ drop f ] if ;
|
||||||
|
|
|
@ -158,7 +158,10 @@ M: block pprint-section* ( block -- )
|
||||||
GENERIC: pprint* ( obj -- )
|
GENERIC: pprint* ( obj -- )
|
||||||
|
|
||||||
: word-style ( word -- style )
|
: word-style ( word -- style )
|
||||||
parsing? H{ { font-style bold } } H{ } ? ;
|
[
|
||||||
|
dup presented set
|
||||||
|
parsing? [ bold font-style set ] when
|
||||||
|
] make-hash ;
|
||||||
|
|
||||||
: pprint-word ( obj -- )
|
: pprint-word ( obj -- )
|
||||||
dup word-name [ "( ? )" ] unless*
|
dup word-name [ "( ? )" ] unless*
|
||||||
|
|
Loading…
Reference in New Issue