Jack Jansen
8d4f06a73a
Added itertools module.
2003-02-05 13:36:50 +00:00
Jack Jansen
b9fa1a9ec5
Changed an edit instruction because of a changed parameter name (sigh).
2003-02-04 15:35:07 +00:00
Jack Jansen
52377e05be
The FSAliasFile routines also have an in/out parameter.
2003-02-02 23:00:21 +00:00
Jack Jansen
60ffc2bafc
Added a missing INCREF in pathname().
2003-01-28 23:29:46 +00:00
Jack Jansen
2b3ce3ba3f
FSRef and EasyDialogs pathname support was pretty much broken in MacPython-OS9. Fixed.
2003-01-26 20:22:41 +00:00
Jack Jansen
9c564755b8
Added a convenience routine pathname() which accepts either a string, unicode,
...
FSSpec or FSRef object and returns an 8-bit pathname (utf8 encoded).
2003-01-19 22:59:52 +00:00
Jack Jansen
e58962af4d
Fixed the first two bugs in the new file dialogs (found by Just):
...
- AskFileForSave didn't work for string return values
- filterProc didn't work.
2003-01-17 23:13:03 +00:00
Jack Jansen
b2a57722a8
It turns out that some calls return AEDesc records that are "borrowed",
...
the AEDesc data shouldn't be disposed when the Python object is.
Added a C call AEDesc_NewBorrowed() to create these objects and a Python
method old=AEDesc.AutoDispose(onoff) to change auto-dispose state.
2003-01-17 23:11:17 +00:00
Jack Jansen
c99b675ff4
For reasons unknown previewProc and filterProc were disabled. Enabled them.
2003-01-17 16:14:31 +00:00
Jack Jansen
2d0909b9cb
Implemented FSCatalogInfo structure support, and used this to implement
...
FSSpec.SetDates() and GetDates(). Closes #662836 .
2003-01-15 22:36:16 +00:00
Jack Jansen
bc65521567
Implemented FSCatalogInfo.
2003-01-12 23:01:46 +00:00
Jack Jansen
b2fcd086c7
Started on implementing support for FSCatalogInfo. Doesn't work yet, don't
...
try it.
2003-01-09 23:37:37 +00:00
Jack Jansen
3e82872eca
Merging the various tweaks for MacPython-OS9 2.3a1 back into the trunk.
2003-01-08 16:27:44 +00:00
Jack Jansen
5681acbf94
Added zipimport and _random module.
2002-12-30 23:11:30 +00:00
Jack Jansen
248f6f1f73
Second-argument alias methods were generated with a variation on
...
MethodGenerator, this should be OSErrMethodGenerator.
2002-12-26 20:45:43 +00:00
Jack Jansen
00df3e052b
If you entered a pathname for a nonexisting file to a FSSpec constructor
...
on OSX then the actual error (file not found) was obscured by the
error message that tried to be helpful about the allowed arguments. Fixed.
2002-12-25 22:45:28 +00:00
Jack Jansen
e072b876e0
Removed macfs, added File and Folder.
2002-12-24 13:08:52 +00:00
Jack Jansen
b734869f46
- Various tweaks to shut up compiler warnings.
...
- Regenerated with the correct calls to PyType_Ready and the correct
deallocator calls.
2002-12-23 23:16:25 +00:00
Jack Jansen
234d074446
- Various tweaks to forestall compiler warnings.
2002-12-23 22:35:38 +00:00
Jack Jansen
6810f92d4d
The extension module macfs has been replaced by a pure Python version.
2002-12-19 23:27:58 +00:00
Jack Jansen
e87663306a
Added the last missing bits of functionality, and fixed a nasty bug where we
...
could overwrite memory.
2002-12-19 23:26:58 +00:00
Jack Jansen
f955784f0c
Regenerated with inheritance-aware xxxx_Check() macros.
2002-12-19 21:24:35 +00:00
Jack Jansen
543c9253cd
- Added rawdata initializers
...
- Added support for optional FSSpecs and FSRefs to the Alias routines.
NewAlias and friends are still functions, though, not methods.
2002-12-18 23:17:26 +00:00
Jack Jansen
1795f29b4b
Fixed silly typo.
...
Added comment (to myself) on what still needs to be done.
2002-12-17 23:29:27 +00:00
Jack Jansen
ae63756bf8
Include Finder.h too in the list of header files to parse: the finder
...
constants have tradiationally been in MACFS.py.
2002-12-17 22:22:57 +00:00
Jack Jansen
e55beefed8
- Added as_pathname and as_tuple methods
...
- Added access to the "data" attribute
- Fixed the FSRef tp_init routine to accept pathnames on OSX
- Changed the FSSpec tp_repr to return something resembling what
macfs returns.
2002-12-17 22:10:46 +00:00
Jack Jansen
e3a1c8f875
Combined alias and file into a single module. This is the only reasonable
...
way to get various alias creation routines as methods of FSSpec or FSRef
objects (which is the logical thing, from a Python POV). Also started on
the code that will contain all the macfs functionality, so macfs can
becode a Python module, to be used mainly for backward compatibility.
2002-12-15 19:55:07 +00:00
Jack Jansen
6d802a0ce3
Tweaks to make this module OS9-compatible.
2002-12-13 23:16:00 +00:00
Jack Jansen
b132a39399
Removed: not carbon-compatible.
2002-12-13 22:49:24 +00:00
Jack Jansen
65cbf93fce
Get rid of support for Universal Headers older than 3.4 and various other
...
outdated things.
2002-12-13 15:02:02 +00:00
Jack Jansen
6c7e326eaa
Getting rid of pre-Carbon (MacOS8) support. All code depending on
...
TARGET_API_MAC_OS8 (or !TARGET_API_MAC_CARBON) is gone. Also some
TARGET_API_MAC_OSX conditional code is gone, because it is no longer
used on OSX-only Python (only in MacPython-OS9).
2002-12-12 10:31:54 +00:00
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