diff --git a/TODO.FACTOR.txt b/TODO.FACTOR.txt index 9669197e5c..f987bca0bb 100644 --- a/TODO.FACTOR.txt +++ b/TODO.FACTOR.txt @@ -1,9 +1,24 @@ - make-image in the UI leaks memory... - + httpd: - outliners don't work - browser responder doesn't work - code walker & exceptions -- test and debug problems +- another i/o bug: on factorcode eventually all i/o times out +- x11 title bars are funny +- save window positions on x11 +- restore windows with the correct stacking order +- if the listener is running a command when the image is saved, it + restores to an unresponsive gadget +- track: don't allow negative dimensions +- fix top level window positioning +- services do not launch if factor not running +- when scrolling wheel, or moving mouse out of window, rollover is not + updated +- focus is not top-level window aware +- amd64 crash +- get factor running on mac intel +- constant branch folding +- new objc syntax + refactor style stack code so that nested styles are handled at a lower-level - in HTML, we can nest div tags, etc @@ -24,14 +39,10 @@ - there was a performance hit, investigate - float boxing and overflow checks need a gc check too - + io: -- another i/o bug: on factorcode eventually all i/o times out - gdb triggers 'mutliple i/o ops on port' error -- stream server can hang because of exception handler limitations -- better i/o scheduler -- yield in a loop starves i/o +- better i/o scheduler - eg, yield in a loop starves i/o - "localhost" 50 won't fail + help: @@ -46,13 +57,7 @@ + ui/help: -- x11: - - x11 input methods - - x11 title bars are funny - - save window positions on x11 -- restore windows with the correct stacking order -- if the listener is running a command when the image is saved, it - restores to an unresponsive gadget +- x11 input methods - roundoff is still not quite right with tracks - clearing pane with ^L leaves scrollbar a pixel off - new browser: @@ -61,8 +66,6 @@ - toggle/radio buttons/tabs or something - inspector: less clutter when browsing words - make-frame should compile -- track: don't allow negative dimensions -- fix top level window positioning - clicks sent twice - speed up ideas: - only do clipping for certain gadgets @@ -72,24 +75,17 @@ - horizontal scrolling - polish OS X menu bar code - dock menu - - services do not launch if factor not running - - new syntax -- when scrolling wheel, or moving mouse out of window, rollover is not - updated -- focus is not top-level window aware - display lists - variable width word wrap + compiler/ffi: -- amd64 crash -- get factor running on mac intel +- type inference at branch merge points - free up r11, r12 as a vreg on ppc - float= on powerpc doesn't consider nans equal - intrinsic fixnum>float float>fixnum - win64 port - amd64 %unbox-struct -- constant branch folding - complex float type - complex float intrinsics - remove literal table diff --git a/library/ui/cocoa/view-utils.factor b/library/ui/cocoa/view-utils.factor index 005fe90eb3..5c8b36ab21 100644 --- a/library/ui/cocoa/view-utils.factor +++ b/library/ui/cocoa/view-utils.factor @@ -25,7 +25,7 @@ sequences ; r> [frame] NSRect-h swap - 0 3array ; : send-mouse-moved ( view event -- ) - over >r mouse-location r> view move-hand ; + over >r mouse-location r> window move-hand ; : button ( event -- n ) #! Cocoa -> Factor UI button mapping @@ -64,11 +64,11 @@ sequences ; dup [modifierFlags] modifiers modifier swap key-code ; : send-key-event ( view event quot -- ) - >r event>gesture r> call swap view world-focus + >r event>gesture r> call swap window world-focus handle-gesture ; inline : send-user-input ( view event -- ) - [characters] CF>string swap view world-focus user-input ; + [characters] CF>string swap window world-focus user-input ; : send-key-down-event ( view event -- ) 2dup [ ] send-key-event @@ -78,10 +78,10 @@ sequences ; [ ] send-key-event ; : send-button-down$ ( view event -- ) - over >r button&loc r> view send-button-down ; + over >r button&loc r> window send-button-down ; : send-button-up$ ( view event -- ) - over >r button&loc r> view send-button-up ; + over >r button&loc r> window send-button-up ; : send-wheel$ ( view event -- ) [ [deltaY] 0 > ] 2keep mouse-location