Jack Jansen
5f61a05d7f
Fixed so the Res.Resource() accepts either another resource, a string
...
or no argument (giving an empty resource).
2002-12-05 23:26:38 +00:00
Jack Jansen
96cebde909
Added PEP253 support to most Carbon modules. This isn't complete yet:
...
some of the more compilcated cases (CF, Res) haven't been done yet. Also,
various types should inherit from each other (anything with an as_Resource
method should be a Resource subtype, the CF types should become one family).
2002-12-03 23:40:22 +00:00
Jack Jansen
dbd5701d73
Converted the Carbon modules to use PEP252-style objects, with
...
descriptors in stead of manual getattr hooks to get at attributes
of the objects.
For Qd I have in stead gotten rid of most of the attribute access
in favor of the carbon-style accessor methods (with the exception
of visRgn, to be done later), and of the Carbon.Qd.qd global object,
for which accessor functions are also available.
For List I have fixed the fact that various methods were incorrectly
generated as functions.
CF is untouched: PEP252 doesn't allow "poor-mans-inheritance" with
basechain, so it will have to wait for PEP253 support.
2002-11-29 23:40:48 +00:00
Jack Jansen
4b5c7a4f47
Allow access to the returned value(s) as FSRefs. Unfortunately for some
...
reason getting at saveFileName doesn't work, so it currently only really
works for opening files for reading.
2002-11-22 23:39:52 +00:00
Jack Jansen
d0e59fb68d
Added the alias manager too. The interface isn't perfect yet: the alias
...
manager doesn't always have the alias as the first argument, so things
become functions in stead of methods.
2002-11-22 15:53:32 +00:00
Jack Jansen
e2ba87396c
Got angry and added support for pretty much the whole file and folder
...
manager. This should allow us the get rid of most of the FSSpecs, only
navigation services remains to be done.
2002-11-22 14:58:35 +00:00
Jack Jansen
972573553e
Define PyDoc_STR if it isn't defined. This makes these modules compile
...
for Python 2.2.
2002-11-18 15:26:43 +00:00
Jack Jansen
277fc7efce
Enable _AH module.
2002-09-06 23:33:40 +00:00
Jack Jansen
fe9acdea8a
Typecode for AHTOCType was wrong. Fixed.
2002-08-30 23:02:09 +00:00
Jack Jansen
983258ed7e
Revived the Carbon.Help module, but implementing the MacHelp API in stead
...
of the defunct Balloons API. Help tags are TBD, but at least this gives
us access to the help menu.
2002-08-29 21:09:00 +00:00
Jack Jansen
d59f8d0691
Interface to Apple Help Manager.
2002-08-22 23:31:37 +00:00
Jack Jansen
f34a8bced2
Moved CoreFoundation type support to bgen/macsupport.
2002-08-22 23:30:49 +00:00
Jack Jansen
286e838f22
Added PyDoc_STR's.
2002-08-22 23:29:45 +00:00
Jack Jansen
49931887d7
Regenerated with PyDoc_STR() around docstrings.
2002-08-16 09:09:31 +00:00
Jack Jansen
7ca993ed37
Fixed the bugs in the constant definitions, and in the code to test
...
them.
The FutureWarnings are still there, until a way has been found to
say "I know what I'm doing here when I say 0xff000000".
2002-08-15 22:05:58 +00:00
Jack Jansen
87eea88b5a
After generating the Python file with definitions try to run it, so
...
we catch errors during the build process in stead of later during runtime.
2002-08-15 21:48:16 +00:00
Jack Jansen
9536bcbfd8
This file should have gone long ago.
2002-08-09 09:02:01 +00:00
Jack Jansen
9c5b61b21b
Patch #567296 by Pim Buurman, slightly modified by me so it can be disabled
...
at compile time: use PBGetCatInfoSync() to get FInfo data in stead of
GetFInfo. The latter doesn't work for folders. The former does, at
least on OSX, and insofar the info makes sense for a folder.
2002-08-06 12:59:44 +00:00
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