Commit Graph

57 Commits

Author SHA1 Message Date
Robby Findler
19d6f7a15a Rackety 2012-12-21 19:22:59 -06:00
Robby Findler
3f9e60a908 add display-changed method 2012-12-21 19:22:59 -06:00
Matthew Flatt
3a9f8eea4f racket/gui cocoa: fix internal ObjC class names
"My" -> "Racket". The "My" prefix was from initial experiments,
of course, and I just never got around to changing it before.
I think these names go into a global namespace, though, at the
ObjC level, so they need to have a distinct and Racket-specific
prefix.
2012-05-16 09:43:23 -06:00
Matthew Flatt
985eecbed7 racket/gui cocoa: fix initial eventspace hook 2012-05-16 07:21:55 -06:00
Matthew Flatt
bc0c2075fd cocoa: make sure app wakes up on file event 2011-11-25 13:19:42 -07:00
Matthew Flatt
dc912ee6de third attempt to fix 64-bit Lion hidden-window problem
After all the previous attempts, the problem seems almost trivial:
although Apple documents `NSAnyEventMask' as the constant #xFFFFFFFF,
it's actually NSUIntegerMax (and the difference matters in 64-bit
mode).

Merge to 5.2.
2011-10-10 15:48:30 -06:00
Matthew Flatt
9fd11ac92c Revert "another attempt to fix the 64-bit Lion hidden-window problem"
This reverts commit f6e5468dbb.

Merge to 5.2
2011-10-10 15:38:42 -06:00
Matthew Flatt
f6e5468dbb another attempt to fix the 64-bit Lion hidden-window problem
This fix uses the same`run'-vs-`finishLaunch' technique as before,
but patches up the modal-dialog problem by calling `run' again
with a callback to start a modal loop.

Merge to 5.2.
2011-10-08 06:12:17 -06:00
Matthew Flatt
9aa93ab5ae Revert "cocoa: change the way the app is initialied"
This reverts commit 60101618db.

While this changes fixes a 64-bit Lion problem, it creates a
worse problem of breaking file and print dialogs.
2011-10-07 15:25:31 -06:00
Matthew Flatt
60101618db cocoa: change the way the app is initialied
Calling NSApplication's `run' works better than calling `finishLaunching'
directly, particularly in 64-bit Lion for some reason.

Relevant to PR 12102
Relevant to PR 12257
2011-10-07 08:05:15 -06:00
Matthew Flatt
9d4fcd8e84 better fix for TransformProcessType issue
GRacket registers witht a global table to indicate that
no transform is needed. (This change was intended to address
a 64-bit problem on Lion. It didn't help, but this seems
better than ignoring an error.)
2011-09-10 10:53:42 -06:00
Matthew Flatt
9c5b78e998 suppress an error message (related to Mac 10.7)
We could try to figure out the current state of the process,
instead, but it seems like too much work.
2011-09-09 19:22:42 -06:00
Matthew Flatt
735ca7f3c3 racket/gui: add `application-start-empty-handler' 2011-09-09 17:03:18 -06:00
Matthew Flatt
34eb5ec983 cocoa: fix application about handler
Closes PR 12165
2011-09-03 10:35:55 -06:00
Matthew Flatt
d857385797 cocoa: fix switch-to-gui-app for 64-bit 2011-09-02 06:27:56 -06:00
Matthew Flatt
3f11ef9b11 report some errors instead of potentially ignoring them 2011-09-01 07:14:05 -06:00
Matthew Flatt
5a5800d513 place-specific low-level "sleep" function
to make racket/gui work right with places (running
 in just one of them) on Mac OS X
2011-06-17 17:03:21 -06:00
Matthew Flatt
aea79be7a4 cocoa: FFI type corrections 2011-02-14 06:10:56 -07:00
Matthew Flatt
b485d375b0 cocoa: event-dispatch repairs, especially when no frame is shown
Relevant to PR 11672
2011-01-28 12:43:51 -06:00
Matthew Flatt
630dee7227 cocoa: better sync between Cocoa and Racket event queues
to reduce inversion where a low-priority callback runs
 when a GUI event is available
2011-01-26 12:19:48 -07:00
Matthew Flatt
790a91e520 fix minor potential GC bugs and add some debugging support 2010-12-13 16:31:13 -07:00
Matthew Flatt
3479f5fb92 cocoa: hack around NSApplication's handling of command-line arguments 2010-12-02 11:53:18 -07:00
Matthew Flatt
ab070b205e cocoa: finally found the documented API to enable GUI mode 2010-11-25 08:03:32 -07:00
Matthew Flatt
510c3f8a33 cocoa: try to fix problem with drifting gc-blit window 2010-11-23 10:02:45 -07:00
Matthew Flatt
b6b3298567 cocoa: avoid 10.6-specific method for menu popup 2010-11-10 17:54:07 -07:00
Matthew Flatt
b9f3957a76 gtk and cocoa: add flush method to canvas% and fix periodic flush 2010-11-05 15:54:55 -06:00
Matthew Flatt
da6397e006 cocoa: hack around a problem with application hiding 2010-11-05 15:54:54 -06:00
Matthew Flatt
50caefcb38 cocoa: convince dock to not resurrect a closed frame 2010-11-05 15:54:53 -06:00
Matthew Flatt
6fa9ee22a7 remove debugging printf 2010-11-05 15:54:51 -06:00
Matthew Flatt
4891b87ea1 cocoa: another screen-change workaround 2010-11-05 15:54:50 -06:00
Matthew Flatt
05cfffdf9e v5.4.99.1, executable-yield-handler', and make-bitmap' etc. 2010-11-05 15:54:50 -06:00
Matthew Flatt
d7f1d12ea1 clean up 2010-11-05 15:54:49 -06:00
Matthew Flatt
4f55d22705 fix mistake cocoa screen notification 2010-11-05 15:54:49 -06:00
Matthew Flatt
47c032ff34 work around cocoa display-change issue 2010-11-05 15:54:48 -06:00
Matthew Flatt
bffff78aad misc fixes, especially cocoa 2010-11-05 15:54:48 -06:00
Matthew Flatt
4f2e59e7a6 some fixes prompted by the test suite 2010-11-05 15:54:48 -06:00
Matthew Flatt
97a52a58bc cocoa: don't over-poll for events 2010-11-05 15:54:29 -06:00
Matthew Flatt
0f2ff1ff5d try to throttle cocoa event dequeue for key & mouse events 2010-11-05 15:54:29 -06:00
Matthew Flatt
4c22197dee cocoa app file handler 2010-11-05 15:54:29 -06:00
Matthew Flatt
5809bc7790 fix slider value display and 'plain option 2010-11-05 15:54:27 -06:00
Matthew Flatt
f1e2db412f new queue level for refresh events 2010-11-05 15:54:20 -06:00
Matthew Flatt
ae05eddf14 generalize editor selection mechanism to support Windows style 2010-11-05 15:54:19 -06:00
Matthew Flatt
67ec13ac1a small step toward new text hiliting 2010-11-05 15:54:19 -06:00
Matthew Flatt
c704905833 more memory management 2010-11-05 15:54:15 -06:00
Matthew Flatt
152a8b6703 clean up cocoa memory management and also fix vertical sliders and guages 2010-11-05 15:54:14 -06:00
Matthew Flatt
a9ffced9b8 clean up lock library and uses 2010-11-05 15:54:14 -06:00
Matthew Flatt
8ad33f15ab consolidate lock implementation and fix custodian problem 2010-11-05 15:54:13 -06:00
Matthew Flatt
7a7658e86d new cocoa canvas-refresh strategy 2010-11-05 15:54:12 -06:00
Matthew Flatt
dedba7a441 fix cocoa pref menu 2010-11-05 15:54:11 -06:00
Matthew Flatt
202e18ef85 dialog show & button width fixes 2010-11-05 15:54:08 -06:00