summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
Commit message (Collapse)AuthorAgeFilesLines
* name kwargs kwargsJust van Rossum2002-11-211-2/+2
|
* Tools to create MacOS X (application) bundles.Just van Rossum2002-11-211-0/+307
| | | | | | | Todo: - command line parsing - main program - modulefinder(-like ;-) support to build standalone apps.
* - cleaned up example/test codeJust van Rossum2002-11-201-29/+30
| | | | | | - don't encode/escape elements - fixed typo in doc string - provide our own copy function for the Dict class
* removed a redundant .strip(); made a doc string more or less tell the truthJust van Rossum2002-11-191-3/+5
|
* No need to import __builtin__, spotted by Skip.Just van Rossum2002-11-191-4/+4
|
* Pure Python implementation of a plist generator/parser.Just van Rossum2002-11-191-0/+433
|
* Python 2.2 as installed by Apple has a version of _Res that is too old. WeJack Jansen2002-11-151-1/+4
| | | | attempt to load an override version in this case.
* Added a hack so we can build applets with a MacPython that uses theJack Jansen2002-11-151-0/+11
| | | | | OSX 10.2 apple-supplied Python as its base: if we've copied a symlink as the executable we remove it and install appletrunner in stead.
* A script to run applets. Originally by Just, slightly modified by me.Jack Jansen2002-11-151-0/+17
|
* - Use imp to find appletrawmain.py in stead of hand-crafting the pathJack Jansen2002-11-111-2/+5
| | | | | to it. - Allow for symlinks in the applet template.
* Got rid of the python.rsrc resource file. The error message strings andJack Jansen2002-11-075-43/+35
| | | | | | | | | | dialogs are now stored in Mac/Lib, and loaded on demand through macresource. Not only does this simplify a MacPython based on Apple's Python, but it also makes Mac error codes come out symbolically when running command line python (if you have Mac/Lib in your path). The resource files are copied from Mac/Resources. The old ones will disappear after the OS9 build procedure has been adjusted.
* Forward port of 1.12.14.3 (which has an incorrect log message):Jack Jansen2002-10-291-1/+4
| | | | | | | if SetDates() in touched() returns an error ignore it: the user may not have permission to change the parent folder. This is a non-serious problem, the only function of touched() is to speed up the finder seeing the change.
* Under Jaguar it seems that 'errn' return value keyword parameters don'tJack Jansen2002-10-251-0/+8
| | | | | | | | | (or don't always?) show up with missed(). I think this is a bug in Jaguar, but as it is a potential dangerous problem (the OSA event has failed, but the Python code isn't told about this and happily continues) this is a quick workaround. Bugfix candidate, I'll add it to 2.2.2 as a last second fix.
* Shut up FutureWarnings about hex constants.Jack Jansen2002-09-121-0/+4
|
* Patch by Tony Lownds: add the Resources directory to sys.path.Jack Jansen2002-09-121-0/+6
|
* Reverted previous change, I was confused.Jack Jansen2002-09-101-1/+1
|
* Import Carbon.AH, not Carbon.HelpJack Jansen2002-09-061-1/+1
|
* Get rid of non-ascii characters.Jack Jansen2002-09-061-4/+4
|
* Initialize self._helpmenu earlier, so we can use gethelpmenu() whileJack Jansen2002-08-301-1/+1
| | | | building the user menus.
* Added support for the help menu. Application.gethelpmenu() will returnJack Jansen2002-08-291-0/+35
| | | | | | | it. Also fixed menu IDs to be signed in do_menudispatch. this is an incompatible change, but I don't think it'll hurt anyone.
* Revived the Carbon.Help module, but implementing the MacHelp API in steadJack Jansen2002-08-292-66/+58
| | | | | of the defunct Balloons API. Help tags are TBD, but at least this gives us access to the help menu.
* Don't copy the documentation when using Python.app as an applet template.Jack Jansen2002-08-291-0/+1
|
* This file never made it to the repository, somehow.Jack Jansen2002-08-281-0/+28
|
* These were regenerated some time ago (with ascii chars only andJack Jansen2002-08-286-59/+61
| | | | fully qualified imports) but somehow not checked in yet.
* Interface to Apple Help Viewer.Jack Jansen2002-08-282-0/+7
|
* Refuse to run if the last bit of the destination path contains a # character.Jack Jansen2002-08-181-1/+4
| | | | | | | | | | | This is a silly workaround for a rather serious bug in MacOSX: if you take a long filename and convert it to an FSSpec the fsspec gets a magic cooky (containing a #, indeed). If you then massage the extension of this fsspec and convert back to a pathname you may end up referring to the same file. This could destroy your sourcefile. The problem only occcurs in MacPython-OS9, not MacPython-OSX (I think). Closes bug #505562.
* - Check not only that cache file exists, but also that it is newer thanJack Jansen2002-08-091-4/+7
| | | | | the applesingle file. - Added optional verbose option for cachersrc tool.
* Use hex escape for non-ascii chars, now that the parser wants that.Jack Jansen2002-08-081-13/+13
| | | | | Good thing, too: some of the characters had been mangled by OS9->CVS->OSX roundtrips.
* Regenerated with OSA class inheritance and fix for non-ascii chars.Jack Jansen2002-08-0742-818/+2217
|
* Donovan Preston's patch #538395, with some mods by me.Jack Jansen2002-08-073-20/+97
| | | | | | | | | | | | This patch makes inheritance for OSA classes work. The implementation is a bit convoluted, but I don't immedeately see a simpler way of doing it. I added calls to ascii() everywhere we output strings that may contain non-ascii characters (Python has gotten very picky since the encoding patch:-). I also removed Donovan's different way of opening resource files: I don't seem to need it.
* Wrapper around _IBCarbon.Jack Jansen2002-08-061-0/+1
|
* Patch by Ronald Oussoren: if there's a .lproj in the extras list alsoJack Jansen2002-08-051-1/+10
| | | | | check whether it contains a .nib, and do the Cocoa song and dance if it does.
* In copy() don't try to obtain an FSSpec until we know the destinationJack Jansen2002-08-051-6/+12
| | | | exists. Partial fix for #585923.
* Moved bgenlocations to the Mac/Lib directory. Not perfect, but better thanJack Jansen2002-08-051-0/+61
| | | | | | | where it was: it is really a configuration file, not a normal module. By moving it into Mac/Lib we can now also store the location of bgen itself in there, which is needed because bgen isn't installed.
* The definitions for IBCarbonRuntime.hJack Jansen2002-08-041-0/+5
|
* Mkdirs() failed when provided with unix pathnames. Fixed.Jack Jansen2002-08-031-1/+1
|
* Hmm, in some cases we don't seem to get our scriptname in argv[0].Jack Jansen2002-08-021-2/+13
| | | | Cater for that by working from sys.executable.
* Final step in making applets first-class citizens: if the applet wantsJack Jansen2002-08-022-0/+56
| | | | | | | | | argv emulation (i.e. if the end user drops files and folders on the applets these will show up in sys.argv) BuildApplet will add the required code to the applet bundle, in __rawmain__.pyc. This code is compiled from appletrawmain.py, it creates sys.argv, cleans up most of the mess and executes either __main__.py or __main__.pyc.
* Oops, the -psn stuff is in argv[1], of course.Jack Jansen2002-08-021-2/+2
|
* Got rid of a couple of OS9-isms.Jack Jansen2002-08-021-3/+8
|
* - Slightly better error message in case of syntax errors in the script.Jack Jansen2002-08-021-3/+5
| | | | | - The applet .rsrc file should be called python.rsrc, it is not based on the applet name.
* - Remove -psn-xxxx argument added by the Finder.Jack Jansen2002-08-021-1/+4
| | | | - "Open Document" appleevent is "odoc", not "open".
* Construct a sys.argv from the initial AppleEvent sent by the finderJack Jansen2002-08-021-0/+111
| | | | | | during startup of a program. This module will replace the C code in macgetargv.c so we can get rid of the special macmain.c for OSX Python.app.
* Slightly better error message in case of missing resources.Jack Jansen2002-08-021-5/+5
|
* Added a __contains__ method.Jack Jansen2002-07-261-0/+3
|
* staticforward bites the dust.Jeremy Hylton2002-07-171-1/+1
| | | | | | | | | | | | | | | 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.
* In plugin projects use (by default) the new mwerks_shcarbon_pchJack Jansen2002-06-261-1/+1
| | | | header file in stead of mwerks_carbonplugin_config.h.
* Close the project after generating it, so we don't keep a gazillion projectJack Jansen2002-06-261-0/+1
| | | | files open when we're rebuilding them all.
* Turns out GetArgv() options can be 4-tuples too, with the last value being ↵Jack Jansen2002-06-261-3/+9
| | | | | | the default (or something like that). Cater for this. Also put in a safeguard against very long help strings.
* Open the source file in universal newline mode.Jack Jansen2002-06-201-1/+1
|