Commit Graph

121 Commits

Author SHA1 Message Date
Matthew Flatt
ff6b409f28 Cocoa: avoid atomic-mode problems in clipboard
Get data from a clipboard client before going into atomic mode. This
correction can avoid an "about to suspend in atomic mode" failure,
particularly if a snip fails to copy correctly.
2015-02-05 10:33:47 +01:00
Robby Findler
7a3c102d1c add pulled-point to 2htdp/image's core 2015-02-01 14:39:37 -06:00
Gustavo Massaccesi
5a126f552e Change color in editor: Grey -> Gray 2015-01-30 13:27:08 -07:00
Robby Findler
d8f090957f fix definitely-same-image? for the image-snip case
closes PR 14951
2015-01-28 21:39:47 -06:00
Robby Findler
5df277c2d6 adjust size limitation when building bitmaps for 2htdp/image images
so that it limits the total size of the bitmap, instead
of limiting based on the width and height independently
2015-01-24 14:43:09 -06:00
Matthew Flatt
99a04d5f52 cocoa: get file-dialog results atomically
Otherwise, the NSURL object that is returned from the dialog can
be relased before we get the result.
2015-01-23 15:37:37 -07:00
Robby Findler
027ce3bdc2 fix drawing bug in line-numbers and special-first-line support
This drawing bug was that the DC's state wasn't being
initialized all of the way. In particular, the text-mode
wasn't being set and so, in rare occasions, other drawing
code would (legally) leave it in 'solid mode with a non-white
background color also set. Which would cause those two things
to draw incorrectly.
2015-01-15 16:31:26 -06:00
Matthew Flatt
1185faa590 cocoa: adjust key events for empty Ctl- combos and special Option
In particular, restore key handling that makes Ctl-Space produce an
event with a Space character. Also, restore `special-option-key`
support, while correcting the documentation to say what
`special-option-key` and `special-control-key` actually do.

Closes PR 14934
2015-01-14 14:08:28 -07:00
Matthew Flatt
60611bc081 cocoa: fix focus method
Don't confuse "should the Tab key advance the focus to this window?"
with "can this window have the focus?".
2015-01-11 11:05:36 -07:00
Robby Findler
d0561137b5 extend curves in 2htdp/image so they can be filled 2015-01-10 19:43:13 -06:00
Matthew Flatt
31231a6a8d narrow dependencies on Carbon
(reduced Carbon footprint?)
2015-01-09 08:37:38 -07:00
Jens Axel Søgaard
4dc47ef413 Compute other-key-codes
Use UCKeyTranslate to compute and store other-key-codes in the key-event.
2015-01-09 08:11:02 -07:00
Jens Axel Søgaard
fb0356d2fb Bindings for UCKeyTranslate
Bindings for UCKeyTranslate.
UCKeyTranslate converts a combination of a key-code, a modifier key state, keyboard layout and dead key state to a unicode string.
2015-01-09 08:11:01 -07:00
Matthew Flatt
de783c8378 avoid crashing via GCed racket/gui instance 2015-01-06 19:54:52 -07:00
Robby Findler
927289cd8e make the search/replace button actually finish
all the internal work before returning from the button callback

closes PR 14906
2014-12-30 11:59:30 -06:00
Robby Findler
83eb701b2b add definitely-same-image? to mrlib/image-core 2014-12-30 10:35:13 -06:00
AlexKnauth
237a24261d fix typo (open-input-string) -> (open-output-string) 2014-12-26 01:30:07 -06:00
Robby Findler
c494bf367e protect against errors while loading color schemes
closes PR 14884
2014-12-13 14:37:18 -06:00
Robby Findler
9551380791 add after-set-port-unsaved-name and set-port-unsaved-name 2014-12-11 21:33:42 -06:00
Robby Findler
df7cccdb43 fix queue manipulations in text:ports-mixin
closes PR 14871

test case included in drracket repo
2014-12-08 13:24:57 -06:00
Sam Tobin-Hochstadt
135e357a37 Remove extra directories. 2014-12-02 02:33:07 -05:00