summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Re-raise the Res.Error if the file doesn't exist.Jack Jansen2002-03-291-0/+2
|
* If the file has no resource fork first check to see whether it's aJack Jansen2002-03-291-5/+12
| | | | datafork-based resource file before trying to decode it as AppleSingle.
* Removed debug.Jack Jansen2002-03-291-1/+0
|
* Added an open_pathname() method which opens a resource file by pathname,Jack Jansen2002-03-211-7/+12
| | | | possibly converting from AppleSingle.
* mkalias() now also works for folders. Fixes bug #515830.Just van Rossum2002-03-101-3/+7
|
* Added support for unicode strings (utxt).Jack Jansen2002-02-051-0/+7
|
* Added minimal support for floating windows.Just van Rossum2002-02-041-7/+12
|
* Rename the routine to start the target running _start(), with a compatibilityJack Jansen2002-01-231-2/+6
| | | | | | | | | routine start() calling it. Some suites declare an event start(), which obscures this method, which causes the class initializer to fail when called with start=1. Based on bug report and fix suggestion by Jacob Kaplan-Moss.
* Regenerated to take advantage of new _builtinSuites package.Jack Jansen2002-01-2215-660/+588
|
* A "magic" suite that is the base suite for StdSuites. This solves a problem ↵Jack Jansen2002-01-222-0/+168
| | | | | | with the required events open/openapp/reopen/print/quit officially being part of Required but being defined (by Apple) in Standard. Most of the code and ideas contributed by Michael j. Barber.
* Get rid of fsspec type initializer, it wasn't used anyway.Jack Jansen2002-01-211-2/+0
|
* Changes by Donovan Preston (and a few minor ones by me) to make IDE run underJack Jansen2002-01-211-12/+26
| | | | MachoPython. Mainly making sure we don't call routines that don't exist.