Jack Jansen
c4ff194bdd
Fixed the last two bgen-based modules to be buildable on OSX.
2002-08-05 21:13:07 +00:00
Jack Jansen
aaebdd6a02
Enable building of Carbon toolbox modules with unix-Python.
2002-08-05 15:39:30 +00:00
Jack Jansen
ff8dec7427
Got rid of staticforward.
2002-08-05 15:36:57 +00:00
Jack Jansen
3bd3fedeca
Added _IBCarbon module.
2002-08-05 14:12:24 +00:00
Jack Jansen
acbaefd796
Updated to something that works on my system, and regenerated module.
2002-08-04 21:59:37 +00:00
Jack Jansen
0c069924e5
Donovan Preston's interface to IBCarbon, allowing you to use Interface
...
Builder carbon NIB files from Python. As-is, I may need to twiddle a few
things as he donated this long ago.
Donovan is now one of the four people in the world who know how to drive
bgen!
2002-08-04 21:34:24 +00:00
Jeremy Hylton
938ace69a0
staticforward bites the dust.
...
The staticforward define was needed to support certain broken C
compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the
static keyword when it was used with a forward declaration of a static
initialized structure. Standard C allows the forward declaration with
static, and we've decided to stop catering to broken C compilers. (In
fact, we expect that the compilers are all fixed eight years later.)
I'm leaving staticforward and statichere defined in object.h as
static. This is only for backwards compatibility with C extensions
that might still use it.
XXX I haven't updated the documentation.
2002-07-17 16:30:39 +00:00
Jack Jansen
059ed83cc3
- Got rid if WITH_CYCLE_GC
...
- Cleaned up Python banner string, so the normal build for MacPython 2.3
will have a short banner.
2002-07-07 20:54:44 +00:00
Jack Jansen
fc7d379a96
- Got rid of newmodule.c
...
- These are the final projects that support classic.
2002-06-20 22:56:22 +00:00
Just van Rossum
84fca948c8
fixed refcount leak in CreateNewWindow() and CreateWindowFromResource().
2002-06-05 17:41:03 +00:00
Jack Jansen
0e2f798301
Replaced lots of PyMem_DEL() calls with PyObject_DEL().
2002-05-22 14:31:48 +00:00
Jack Jansen
eaba9d7b28
Added typechecking to the individual python->CF converters, so we can use them in the CF object initializers safely.
2002-05-13 21:23:10 +00:00
Jack Jansen
23be1ceb51
Added CFPreferences support. Added these as functions, not methods, which seemed counter-intuitive.
2002-05-13 21:21:49 +00:00
Jack Jansen
7906634f28
- Better exception when a NULL CF object is encountered.
...
- Manually generate a routine with funny error semantics.
2002-05-12 22:04:14 +00:00
Jack Jansen
6d207c09aa
- Get data from CFData objects as Python strings and vv.
...
- Started on supporting CFPropertyLists.
2002-05-10 22:51:58 +00:00
Jack Jansen
42251323b4
Fixed string and dict conversion, and implemented booleans and numbers (int and float). I think we now have enough CFType support to start on plists and CFpreferences!
...
Transparent handling of unknown CFType objects still TBD.
2002-05-08 22:13:51 +00:00
Jack Jansen
1df628ddce
Partial fix for string handling. Null byte TBD.
2002-05-08 15:29:33 +00:00
Jack Jansen
5ad6f7a3a9
More support for bridging between Python and CoreFoundation objects. Still untested.
2002-05-07 23:00:03 +00:00
Jack Jansen
efaffae8f6
First steps towards a generalized converter of Python object
...
hierarchies to CoreFoundation object hierarchies and vice versa.
2002-05-05 21:48:12 +00:00
Jack Jansen
033b79c483
Regenerated.
2002-04-23 22:46:01 +00:00
Jack Jansen
786681ac60
Got rid of obsolete appearance flag.
2002-04-11 20:56:13 +00:00
Jack Jansen
8ab04b4d65
Got rid of ifdefs for long-obsolete GUSI versions.
2002-04-11 20:46:23 +00:00
Jack Jansen
714d7268d5
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
...
Should finally fix 531398. 2.2.1 candidate.
2002-03-25 00:32:17 +00:00
Jack Jansen
9d79990ac7
Weaklink most toolbox modules, improving backward compatibility. Modules will no longer fail to load if a single routine is missing on the curent OS version, in stead calling the missing routine will raise an exception.
...
Should finally fix 531398. 2.2.1 candidate.
Also blacklisted some constants with definitions that were not Python-compatible.
2002-03-24 23:04:18 +00:00
Jack Jansen
150ed6113c
Generate with weaklink stubs, so missing routines (on MacOS 8.6 and earlier)
...
don't cause import failure.
Fixes 531398, 2.2.1 candidate.
2002-03-22 14:16:39 +00:00
Jack Jansen
0e5a733887
Solve sync() signature conflict differently: manually return 0 if
...
we have GUSI's void sync().
2002-03-21 21:09:36 +00:00
Jack Jansen
ca9a4a6e17
Lurking bug found by patch for 531291: FSSpecs should be passed to
...
Py_BuildValue by address, not by value.
2.2.1 candidate.
2002-03-18 15:41:32 +00:00
Jack Jansen
cb6cf13261
Some of the newer routines return an OSErr, like most toolbox calls, in stead of depending on ResError(). Second half of fix for #531291 .
...
2.2.1 candidate.
2002-03-18 15:31:08 +00:00
Just van Rossum
dd989e1ce7
Added ClipCGContextToRegion() from Quickdraw.h.
2002-03-04 10:31:32 +00:00
Just van Rossum
38b504e9e3
Added support for SyncCGContextOriginWithPort().
2002-03-02 10:20:44 +00:00
Jack Jansen
5ae815af99
Some buffers needed to be unsigned char, not char.
2002-02-26 21:36:19 +00:00
Jack Jansen
6a60915843
Don't blacklist ModalFilterUPP but always pass it as NULL. This enables the record routines to be generated.
2002-02-05 22:35:36 +00:00
Jack Jansen
e62ceac7d4
Added SndRecord and (classic only) SndRecordToFile.
2002-02-05 22:34:35 +00:00
Jack Jansen
ba4fe77fba
Added as_pathname() method to FSRef objects.
2002-01-18 16:13:15 +00:00
Jack Jansen
d48b10621e
In MachoPython expect Unix-style pathnames for both FSSpec and FSRef initializers. TBD: Do the reverse for MacPython, and also handle as_pathname().
2002-01-13 23:16:32 +00:00
Jack Jansen
8f54f2a3f3
Internet Config is now part of official Apple interfaces, so use the new
...
headers and libraries.
2002-01-11 12:38:08 +00:00
Jack Jansen
b99e521319
- Updated to Waste 2.0.
...
- Use waste included with CW in stead of separate package.
2002-01-11 12:37:15 +00:00
Just van Rossum
4b367359b5
Fixed TrackMouseRegion() argument: ioWasInRgn is an in/out parameter.
2002-01-09 18:54:16 +00:00
Just van Rossum
ec0107f023
Today's Carbon Toolbox addition: CarbonEvt.TrackMouseLocation() and friends.
2002-01-08 11:49:31 +00:00
Just van Rossum
ca3b2ffbb9
Today's Carbon Toolbox addition: QDTextBounds()
2002-01-07 14:15:02 +00:00
Just van Rossum
6253a114a7
Added support for DrawThemeButton() and friends.
2002-01-06 23:03:39 +00:00
Just van Rossum
8a107fbfed
Whoops, it's late -- generated output now matches what's checked in...
2002-01-05 23:44:33 +00:00
Just van Rossum
eae95044ae
Q&D support for ThemeDrawingState objects.
2002-01-05 23:37:19 +00:00
Just van Rossum
c4cf27e8e0
- added support for UserPaneKeyDownProc and UserPaneFocusProc
...
- clear error after failing PyArg_Parse()
2002-01-04 19:45:15 +00:00
Jack Jansen
3bac5ca11a
Some of the new routines are carbon-only.
2002-01-04 16:00:27 +00:00
Just van Rossum
7d1d396134
Callback error handling improvements:
...
- print traceback
- don't use fprintf()
- clear exception (implied by PyErr_Print())
2002-01-04 14:39:29 +00:00
Just van Rossum
3e584aaa2a
Ugh, by all means, _do_ report exceptions somehow ;-)
2002-01-04 13:49:36 +00:00
Just van Rossum
43c2de230d
fixed SetEventParameter() signature: removed unneccesary length arg.
2002-01-03 20:45:47 +00:00
Just van Rossum
8edfc542f0
The output MenuRef of GetMenuItemHierarchicalMenu() may be NULL.
2002-01-03 12:16:18 +00:00
Just van Rossum
4f6fe52424
- Added DrawThemeTextBox()
...
- fixed GetThemeTextDimensions(): it has an in/out Point arg, not just out.
2002-01-02 15:11:44 +00:00