Just van Rossum
820867662b
Patch #494553 by Donovan Preston: initial implementation
...
for GetEventParameter().
2001-12-18 12:35:57 +00:00
Jack Jansen
086f7c3890
There's a new include file AEInteraction.h which contains AESend and friends.
2001-12-17 11:47:27 +00:00
Jack Jansen
ec982e2739
TickCount moved to a different header file. We manually added it back in here, for conveninece.
2001-12-17 11:46:50 +00:00
Jack Jansen
2168e9d602
Adapted for Universal Headers 3.4
2001-12-16 20:18:40 +00:00
Just van Rossum
2c39115240
Made event callbacks more rubust: keep an actual reference to the
...
python callback, and do RemoveEventHandler() upon deallocation.
2001-12-14 23:16:04 +00:00
Jack Jansen
9635f33e5b
Quick patch to allow building with Universal Headers 3.4.
2001-12-14 23:03:07 +00:00
Jack Jansen
615e2505f0
Many of the new calls are Carbon-only. Flagged them as such.
2001-12-14 22:47:19 +00:00
Just van Rossum
7ec1c85d7a
- "manage" controls created by CreateXxxXxxControl() functions.
...
- FindControlUnderMouse() returns an existing control, not a new one.
2001-12-13 21:24:37 +00:00
Just van Rossum
4f6c05857f
include the proper header for Mach-O
2001-12-13 13:40:04 +00:00
Just van Rossum
79e71f73e7
second CoreGraphics batch
2001-12-13 13:17:20 +00:00
Jack Jansen
6c3145985f
Shut up gcc warning.
2001-12-12 22:51:39 +00:00
Just van Rossum
e0b9fdca0d
Updated for Universal Headers 3.4.
2001-12-12 22:40:27 +00:00
Just van Rossum
cddfc8736f
Added proper error checking in event callback handler
2001-12-12 21:48:00 +00:00
Just van Rossum
f8d6473782
Exposed quite a few more calls.
2001-12-12 20:48:53 +00:00
Just van Rossum
c3baa0eff7
Fixed to the extend that it now builds in CW6, and actually works
...
a little.
2001-12-11 21:52:02 +00:00
Just van Rossum
14666cc04f
Added __members__ to FInfo object.
2001-12-11 14:04:12 +00:00
Guido van Rossum
146483964e
Patch supplied by Burton Radons for his own SF bug #487390 : Modifying
...
type.__module__ behavior.
This adds the module name and a dot in front of the type name in every
type object initializer, except for built-in types (and those that
already had this). Note that it touches lots of Mac modules -- I have
no way to test these but the changes look right. Apologies if they're
not. This also touches the weakref docs, which contains a sample type
object initializer. It also touches the mmap test output, because the
mmap type's repr is included in that output. It touches object.h to
put the correct description in a comment.
2001-12-08 18:02:58 +00:00
Jack Jansen
101de912d3
Replace sprintf() with PyOS_snprintf().
2001-12-05 23:27:58 +00:00
Jack Jansen
b3be216b41
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
...
changes from start of branch upto r22b2 were already merged, of course).
2001-11-30 14:16:36 +00:00
Jack Jansen
5cc6d6e58e
Changed names, added bridge functions to macfs.fsref objects and
...
generally did things to get it working.
2001-11-06 15:57:59 +00:00
Jack Jansen
2bf52daedd
Added an error message when using FSRef objects on platforms that don't
...
support them.
2001-11-06 15:57:26 +00:00
Jack Jansen
df222d2691
Added hfsplusapi module.
2001-11-06 15:56:56 +00:00
Jack Jansen
ae2df93814
Removed unused variable.
2001-11-06 12:10:05 +00:00
Jack Jansen
24aa3cea07
First couple of fixes to make it compile with Universal 3.3.2.
2001-11-06 12:06:39 +00:00
Jack Jansen
e9b2a0597e
HFS+ API contributed by Nitin Ganatra. This checkin is identical to what he sent me, except for the namechange (fmgr->hfsplus).
2001-11-06 11:10:13 +00:00
Jack Jansen
9c2b514014
Correctly builds the C module now.
2001-11-05 16:21:45 +00:00
Jack Jansen
bd00884415
First tweaks to allow MacPython to be compiled with
...
Universal Headers 3.4
2001-11-05 16:16:39 +00:00
Jack Jansen
34cbe718d4
Fixed broken newlines and changed module name. Still untested.
2001-11-05 16:15:45 +00:00
Jack Jansen
52e9045da6
Carbon Event Manager module donated by Donovan Preston. Checked in as I received them (except for namechange), these will not work as-is, that'll be fixed in a later checkin.
2001-11-05 14:44:23 +00:00
Jack Jansen
537a69fe66
Make the CoreFoundation object _New and _Convert routines available to other modules. Idea by Donovan Preston, implementaion by me.
2001-11-05 14:39:22 +00:00
Just van Rossum
3b5074b0fb
added acces to the cellSize field, rewrote setattr code
2001-11-05 11:12:12 +00:00
Just van Rossum
dd4830ac1d
More List Manager interfacing:
...
- CreateCustomList(): write LDEF's in Python! (carbon + classic)
- list.LGetCellDataLocation()
(Jack: what's with this _WIN32/pywintoolbox.h stuff?)
2001-11-05 08:27:57 +00:00
Jack Jansen
01a9462787
Under MachO-Python unconditionally import macfsn.
2001-11-01 14:00:19 +00:00
Just van Rossum
ab57c7dcfc
Moved macfsn hackery from macmain.c to macfsmodule.c so it loads
...
on demand instead of at startup.
2001-10-31 22:55:08 +00:00
Jack Jansen
e54968a11a
Some escaped newlines had spaces between the backslash and the newline. Also slightly changed the comment on xstat().
2001-10-23 22:28:23 +00:00
Guido van Rossum
98bf58f1c6
SF patch #462296 : Add attributes to os.stat results; by Nick Mathewson.
...
This is a big one, touching lots of files. Some of the platforms
aren't tested yet. Briefly, this changes the return value of the
os/posix functions stat(), fstat(), statvfs(), fstatvfs(), and the
time functions localtime(), gmtime(), and strptime() from tuples into
pseudo-sequences. When accessed as a sequence, they behave exactly as
before. But they also have attributes like st_mtime or tm_year. The
stat return value, moreover, has a few platform-specific attributes
that are not available through the sequence interface (because
everybody expects the sequence to have a fixed length, these couldn't
be added there). If your platform's struct stat doesn't define
st_blksize, st_blocks or st_rdev, they won't be accessible from Python
either.
(Still missing is a documentation update.)
2001-10-18 20:34:25 +00:00
Jack Jansen
697842f58c
Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length'
...
parameter for the return string (as unix pathnames are not limited
by the 255 char pstring limit).
Implemented the function for MachO-Python, where it returns unix pathnames.
2001-09-10 22:00:39 +00:00
Jack Jansen
044d95e9f7
A few more gcc warnings bite the dust.
2001-09-05 15:44:37 +00:00
Jack Jansen
fd064863eb
Shut up many more gcc warnings.
2001-09-05 10:31:52 +00:00
Jack Jansen
f894f6f4e9
Added prototypes to shut gcc -Wstrict-prototypes up.
2001-09-04 22:29:31 +00:00
Jack Jansen
9642ecad06
Shut up a few more gcc warnings.
2001-09-04 22:25:47 +00:00
Jack Jansen
1767f93603
Added prototypes to silence gcc strict-prototype warnings.
...
Fixed a few missing return values.
2001-09-04 22:20:39 +00:00
Jack Jansen
06d2e1af35
Regenerated without default int return types.
2001-09-04 22:19:18 +00:00
Jack Jansen
6114297c87
Silly typos.
2001-09-02 00:09:35 +00:00
Jack Jansen
569ba10610
Don't call PyMac_HandleEvent in unix-Python
2001-09-02 00:08:16 +00:00
Jack Jansen
fabd00fa91
Added glue routine for PyMac_BuildFSSpec, PyMac_GetFSRef and PyMac_BuildFSRef.
...
Moved the declarations to pymactoolbox.h.
2001-09-01 23:39:58 +00:00
Jack Jansen
62d24a0f50
Don't call PyMac_HandleEvent if we're in unix-Python.
2001-09-01 23:38:50 +00:00
Jack Jansen
e9fb3d6db3
Include Carbon/Carbon.h if we're on OSX.
2001-09-01 23:38:13 +00:00
Jack Jansen
e7d8322630
exceptions was missing from the module list. Added.
2001-08-27 22:50:41 +00:00
Jack Jansen
75a2f85593
Last renamed module that wasn't removed yet.
2001-08-24 09:17:15 +00:00
Jack Jansen
25a5bd7708
Renamed.
2001-08-23 14:11:10 +00:00
Jack Jansen
50ecb0ad83
Renamed the Mac toolbox modules to have an initial _ in their name.
2001-08-23 14:02:09 +00:00
Jack Jansen
77105a960b
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
2001-08-23 13:51:46 +00:00
Jack Jansen
d7b568ac4d
test_glob found a nasty bug in GUSI opendir(): it will not fail when called on files, but in stead open the parent directory! We now explicitly test for the argument being a directory and simulate ENOTDIR otherwise.
2001-08-11 23:18:55 +00:00
Jack Jansen
deefbe5666
- Don't return mac-style pathnames in unix-Python.
...
- Fixed up a lot more prototypes (gcc also wants them on static routines)
- Fixed various other gcc warnings.
2001-08-08 13:46:49 +00:00
Jack Jansen
b760923b20
Got rid of 68k-Mac and other outdated ifdefs.
2001-08-07 15:30:23 +00:00
Jack Jansen
71c5b02859
Got rid of mactcp cruft, added Mlte and CF modules.
2001-08-07 15:29:17 +00:00
Jack Jansen
b927285c03
Removed unused variable.
2001-08-07 15:28:52 +00:00
Jack Jansen
67992b7732
Bit another bullet: all toolbox modules are now in dynamically loaded modules. Everything still seems to work, but the ConfigurePythonXXX on initial install may still need work.
2001-08-07 13:53:25 +00:00
Jack Jansen
4590049228
Oops, arg type for the glue routine was wrong.
2001-08-06 15:32:30 +00:00
Jack Jansen
a5bca579fd
PyMac_GetFSSpec must be called via the dylib glue code on OSX.
2001-08-03 15:39:27 +00:00
Jack Jansen
3988358b4d
If we use frameworks we should include CoreServices/CoreServices.h, not the
...
old-style CoreFoundation.h.
2001-08-03 15:36:23 +00:00
Jack Jansen
03b33effc7
TXNTSMCheck isn't available under Mach-O Carbon.
2001-08-03 15:34:29 +00:00
Jack Jansen
cbed91b4db
Merging appropriate 2.1.1 fixes back into the main trunk.
2001-08-03 13:31:36 +00:00
Jack Jansen
ddafd2b0c7
(Finally) converted to new-style args.
...
Added an optional (and ignored) 3d parameter to open() to make the signature compatible with posixmodule.
Added the various O_ constants (by stealing the code from posixmodule).
test_fileinput now passes.
2001-08-03 13:07:19 +00:00
Jack Jansen
6f70d62855
Used an adapted MethodGenerator to generate methods too for functions that have the object as the second arg after a first CFAllocatorRef arg (which we pass as NULL always anyway).
2001-07-17 20:47:13 +00:00
Jack Jansen
e85e4e43bd
The TNXDraw gworld argument is optional.
2001-07-16 21:58:44 +00:00
Jack Jansen
f0ded2f0bc
Various small fixes. The demo now starts to limp along.
2001-07-14 14:00:50 +00:00
Jack Jansen
d4b8361910
Fixed the mis-guessed parameters and added support for a few optional parameter types. There's a good chance that this is usable now (but there's no test code yet).
2001-07-13 22:27:20 +00:00
Jack Jansen
2aadb891e7
First stab at an interface to the Multi Language Text Editor. It compiles and imports, but that's about all. Apple didn't put const in front of their input-only by-reference args, so that needs fixing first.
2001-07-13 20:56:52 +00:00
Jack Jansen
4e566ab904
Implemented minimal FSRef support, plus conversion between FSRefs, FSSpecs and pathnames where applicable.
...
PyMac_GetFSSpec and PyMac_BuildFSSpec have moved to macfsmodule from macglue.
These mods are untested on OSX.
2001-07-08 22:07:23 +00:00
unknown
c90acb9599
Do conversion of CFStrings to/from unicode.
2001-07-04 22:38:52 +00:00
Jack Jansen
340d98f564
- Use weaklink generators so we can support OSX-only calls without crashing on OS9.
...
- Convert CFString to/from Python strings. Currently always MacRoman, to be fixed later (as is unicode support). Python->CFString conversion is automatic.
2001-07-01 22:04:02 +00:00
Jack Jansen
7becc91fef
Added CFURL support, and got base chaining to really work.
2001-06-28 22:08:26 +00:00
Jack Jansen
bc7c8960e0
CFArray, CFData and CFDictonary are now covered, but mainly opaque.
...
CFStrings are in better shape, but Unicode support and automatic conversion to/from Python strings remains to be done.
2001-06-27 22:00:55 +00:00
Jack Jansen
686f9c344c
First small step towards bgen-generated CoreFoundation. there is hardly any real functionality yet, but method chains seem to work, and so do Retain/Release semantics.
2001-06-26 21:51:18 +00:00
Just van Rossum
50cb38df43
Added support for the gc module (!).
2001-06-21 14:50:03 +00:00
Jack Jansen
2942131dac
Got rid of a silly #if.
2001-06-20 21:44:38 +00:00
Jack Jansen
b8248d8cff
Don't use extern when we mean staticforward (OSX gcc is picky about it).
...
Blacklist SendControlMessage: it's signature has changed between Universal Headers 3.3 and 3.4.
2001-06-20 21:31:28 +00:00
Jack Jansen
82bcbd04fd
{Is,Set}AntiAliasedTextEnabled don't exist on MacOS 8.5.5 and earlier. For now: cop out and blacklist them.
2001-06-20 21:29:19 +00:00
Jack Jansen
3685a4328d
ANSIfied function headers to shut up compiler warnings on OSX/Mach-o.
2001-06-20 21:22:23 +00:00
Jack Jansen
6b9289ff1a
Added a const to shut up a compiler warning.
2001-06-20 21:21:07 +00:00
Jack Jansen
4edc5eb639
Reversed the order of the checks for None or a Dialog where a Window is expected so it doesn't crash under OSX/Mach-o.
2001-06-20 21:20:22 +00:00
Jack Jansen
8853b18cc8
Removed some unused routines under Carbon. They caused compile errors with UH34.
2001-06-20 20:55:05 +00:00
Jack Jansen
ff75c214ef
Adapted to Universal Headers 3.4: new refcontype and use UPP names in stead of Proc names for callback creation.
2001-06-20 20:53:38 +00:00
Jack Jansen
0c995756b3
Fixed an error in the signature of the QdRGB converter routines.
2001-06-13 12:39:02 +00:00
Jack Jansen
fa77e1a1b1
Lots more Carbon/Carbon.h includes, new UPP routine names, function prototypes. Most toolbox modules now compile, link and import in MacOSX-MachO python.
2001-05-22 21:56:42 +00:00
Jack Jansen
1129671350
Fixed changed UPP routines names. The module now compiles and loads.
2001-05-22 21:48:40 +00:00
Jack Jansen
f3163303a9
Ifdeffed a few more sections. All functionality that is relevant on MacOSX
...
now appears to work.
2001-05-19 12:50:05 +00:00
Jack Jansen
6143d533b6
Include Carbon/Carbon.h in stead of universal headers, if appropriate.
...
Test for TARGET_API_MAC_OS8 in stead of !TARGET_API_MAC_CARBON where
appropriate.
2001-05-19 12:34:59 +00:00
Jack Jansen
0e04eecdbf
First step in porting MacPython modules to OSX/unix: break all references between modules except for the obj_New() and obj_Convert() routines, the PyArg_Parse and Py_BuildValue helpers.
...
And these can now be vectored through glue routines (by defining USE_TOOLBOX_OBJECT_GLUE) which will do the necessary imports, whereupon the module's init routine will tell the glue routine about the real conversion routine address and everything is fine again.
2001-05-17 21:58:34 +00:00
Jack Jansen
0194ad5c7d
Got the first MacPython module working under MacOSX/MachO (gestalt). Main changes
...
are including Carbon/Carbon.h in stead of the old headers (unless WITHOUT_FRAMEWORKS
is defined, as it will be for classic MacPython) and selectively disabling all the
stuff that is unneeded in a unix-Python (event handling, etc).
2001-05-12 22:46:35 +00:00
Jack Jansen
6e68a7e74f
Be more sensible about when to use TARGET_API_MAC_OS8 in stead of !TARGET_API_MAC_CARBON. This should greatly facilitate porting stuff to OSX in its MachO/BSD incarnation.
2001-05-12 21:31:34 +00:00
Jack Jansen
c54be4299c
Check RefCon backpointer to python object with IsPointerValid() before dereferencing it (carbon only).
2001-04-25 22:09:29 +00:00
Jack Jansen
aabdb0d5bf
Dummy _tkinter module for Carbon, which explains that Tkinter isnt supported under Carbon.
2001-03-20 23:29:41 +00:00
Jack Jansen
abd703d0ce
FindFolder argument is a short, not an unsigned short.
2001-03-15 14:38:10 +00:00
Jack Jansen
043732e95d
Enable FSpResourceFileAlreadyOpen only for Carbon. This is not strictly correct: OS9 InterfaceLib has it, but enabling it will make Python refuse to run on 8.6 and earlier.
2001-03-02 16:32:03 +00:00
Jack Jansen
f1d7b41fa0
Disable GetWindowSpareFlag and GetWindowGoAwayBox on carbon.
2001-02-28 23:32:42 +00:00
Jack Jansen
cced0aa3e0
SetListCellIndent() argument was guessed incorrectly. Fixed.
2001-02-27 13:00:36 +00:00
Jack Jansen
f02f4c8825
Soundex has gone.
2001-02-27 12:59:49 +00:00