summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* - Better commandline interface to BuildApplet, complete with options,Jack Jansen2002-06-091-45/+96
| | | | | | | verbose output to the console, etc. - Allow Cocoa applets to be built with BuildApplet. No full testing has been done yet to ensure OS9 operation hasn't suffered.
* Allow the shared library initialization routine to be overridden with an ↵Jack Jansen2002-05-233-2/+4
| | | | | | initialize=xxx argument. Should fix #492465.
* Regenerated from new Universal Headers.Jack Jansen2002-05-2216-261/+717
|
* Fixed a mistake on my part when regenerating: removed a bogus import of ↵Jack Jansen2002-05-071-2/+0
| | | | | | Applscript_Suite. Bugfix candidate (I'll move it over myself).
* Regenerated.Jack Jansen2002-04-241-4/+4
| | | | Bugfix candidate.
* Second part of fix for #493826: regenerated suite modules so errn exists but ↵Jack Jansen2002-04-2333-1012/+687
| | | | | | == 0 doesn't signal an error. Bugfix candidate.
* Regenerated to include Internet Config error strings.Jack Jansen2002-04-221-9/+72
| | | | Bugfix candidate.
* Get rid of backward compatibility modules. Do this fairly early in the 2.3 ↵Jack Jansen2002-04-1145-180/+0
| | | | cycle so we don't shoot ourselves in the foot later.
* Suite to talk to the OSX Terminal application.Jack Jansen2002-03-302-0/+345
|
* Got rid of obsolete way to get at various toolbox types.Jack Jansen2002-03-301-5/+3
|
* Handle .icns and .plist files for applets.Jack Jansen2002-03-291-5/+23
| | | | | Also, for now (until we learn to parse .plist files) we make a special case for the IDE, setting the creator to "Pide".
* Implemented buildtools for MachoPython .app bundles. The API is compatibleJack Jansen2002-03-291-2/+150
| | | | enough that IDE and BuildApplet can create applets, yeah!
* Don't attempt to create a dummy fsspec if the user cancelled out, justJack Jansen2002-03-291-3/+6
| | | | | | | return None. For now, if the user asks for TEXT files files without type are also accepted. But it is time to phase out StandardGetFile and friends, really.