annotate nextstep/README @ 112396:e79e716435f4

Make Nextstep port handle multiple screens for resize and move. * nsterm.h (ns_output): Add dont_constrain and zooming. (EmacsView): Add ns_userRect. * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check if ns_alternate_modifier is none. * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first screen, not the window screen. (x_set_window_size): Remove constraints. Calculate origin.y only if zooming is 0 and without referring to a screen. (windowWillResize): Don't modify frameSize. (windowDidBecomeKey, mouseDown): Set dont_constrain to 1. (initFrameFromEmacs): Initialize ns_userRect. (windowShouldZoom): Set zooming to one. Remove all other code. (windowWillUseStandardFrame): Move static ns_userRect to EmacsView. Zero it after restore. (constrainFrameRect): New method for EmacsWindow. (mouseDragged): Always post NSWindowDidResizeNotification after call to windowWillResize.
author Jan D. <jan.h.d@swipnet.se>
date Fri, 21 Jan 2011 15:19:44 +0100
parents 417b1e4d63cd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
112218
376148b31b5e Add 2011 to FSF/AIST copyright years.
Glenn Morris <rgm@gnu.org>
parents: 106815
diff changeset
1 Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
96771
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
2 See the end of the file for license conditions.
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
3
96861
0d98c4bdb7e5 Consolidate credits. Copyedits.
Chong Yidong <cyd@stupidchicken.com>
parents: 96771
diff changeset
4 This directory contains the files needed to build Emacs on
98512
7d9a5b179102 Fix case of "GNUstep".
Glenn Morris <rgm@gnu.org>
parents: 96861
diff changeset
5 Nextstep-based platforms, including GNUstep and Mac OS X.
96771
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
6
96861
0d98c4bdb7e5 Consolidate credits. Copyedits.
Chong Yidong <cyd@stupidchicken.com>
parents: 96771
diff changeset
7 The Nextstep support code works on many POSIX systems (and possibly
0d98c4bdb7e5 Consolidate credits. Copyedits.
Chong Yidong <cyd@stupidchicken.com>
parents: 96771
diff changeset
8 W32) using the GNUstep libraries, and on MacOS X systems using the
0d98c4bdb7e5 Consolidate credits. Copyedits.
Chong Yidong <cyd@stupidchicken.com>
parents: 96771
diff changeset
9 Cocoa libraries.
96771
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
10
103242
e0d2d5addcbf * Cocoa/Emacs.xcodeproj/project.pbxproj: Update and redo targets to utilize Makefiles for assembly portions of the build. * INSTALL: Describe the Xcode project.
Adrian Robert <Adrian.B.Robert@gmail.com>
parents: 100955
diff changeset
11 See the INSTALL file in this directory for compilation instructions.
96771
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
12
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
13 Requirements
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
14 ------------
105098
a28672f040f7 * README: Note OS X support is now 10.4 or later.
Adrian Robert <Adrian.B.Robert@gmail.com>
parents: 103242
diff changeset
15 MacOS X 10.4 or later
96861
0d98c4bdb7e5 Consolidate credits. Copyedits.
Chong Yidong <cyd@stupidchicken.com>
parents: 96771
diff changeset
16
96771
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
17 - or -
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
18
105162
f39abe4431e9 * README: Note GNUstep support is now Startup 0.23 or later.
Adrian Robert <Adrian.B.Robert@gmail.com>
parents: 105098
diff changeset
19 GNUstep "Startup 0.23" or later
96861
0d98c4bdb7e5 Consolidate credits. Copyedits.
Chong Yidong <cyd@stupidchicken.com>
parents: 96771
diff changeset
20 Tested on GNU/Linux, should work on other systems, perhaps with minor
0d98c4bdb7e5 Consolidate credits. Copyedits.
Chong Yidong <cyd@stupidchicken.com>
parents: 96771
diff changeset
21 build tweaking.
96771
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
22
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
23
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
24 This file is part of GNU Emacs.
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
25
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
26 GNU Emacs is free software: you can redistribute it and/or modify
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
27 it under the terms of the GNU General Public License as published by
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
28 the Free Software Foundation, either version 3 of the License, or
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
29 (at your option) any later version.
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
30
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
31 GNU Emacs is distributed in the hope that it will be useful,
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
32 but WITHOUT ANY WARRANTY; without even the implied warranty of
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
33 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
34 GNU General Public License for more details.
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
35
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
36 You should have received a copy of the GNU General Public License
d92ec7333164 make more parallel to other platforms
Adrian Robert <Adrian.B.Robert@gmail.com>
parents:
diff changeset
37 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.