Commit Graph

2526 Commits

Author SHA1 Message Date
Jack Jansen fd0b00e0a7 Use new file dialogs. 2003-01-26 22:15:48 +00:00
Jack Jansen 2373ff4e4f Fix an omission in the previous checkin. 2003-01-26 22:15:10 +00:00
Jack Jansen b340acf9fd Use new file dialogs. 2003-01-26 21:40:00 +00:00
Jack Jansen df976caa34 Use new file dialogs. 2003-01-26 20:35:47 +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 d44a3ec63c Getting rid of StandardGetFile 2003-01-22 14:03:12 +00:00
Just van Rossum 7a503a4ee6 Fix bug #670845: cut & clear in the output window now work, in that
- clear clears the entire buffer
  - cut doesn't cut, but copies.
2003-01-20 09:02:23 +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
Just van Rossum c1a9cab8f0 interpret utf-8 file names on OSX 2003-01-09 23:20:31 +00:00
Just van Rossum addc11edf0 removed silly & mask, avoiding FutureWarning 2003-01-09 22:54: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
Just van Rossum 85e4c6757f correct comment (and add newline at end) 2003-01-04 16:26:26 +00:00
Jack Jansen 5681acbf94 Added zipimport and _random module. 2002-12-30 23:11:30 +00:00
Jack Jansen fb08b4c704 Changed sys.path initializer because of addition of Lib/plat-mac and a few minor
things.
2002-12-30 23:07:44 +00:00
Jack Jansen 83f898c86c Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
knows about plat-mac subdirectories, and configure adds a variable
EXTRAPLATDIR. These together take care of copying Lib/plat-mac to
the destination on darwin.

Adding plat-mac is still done with a .pth file which is only created when
you do a framework build. I'm not 100% happy with this, but fixing it
really needs a functional pythonw in non-framework builds, and I don't
think I can do that before 2.3a1 (but I'll try:-).
2002-12-30 22:23:40 +00:00
Jack Jansen 60087fb450 Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
in MacPython-OS9 and MacPython-OSX (or the equivalent unix Python on
Mac OS X). The only items remaining in Mac/Lib are modules that are
meaningful only for MacPython-OS9 (CFM stuff, MacPython preferences
in resources, etc).
2002-12-30 22:04:23 +00:00
Jack Jansen 36e142e1e6 This file hasn't been committed for a long time, because it erronuously ended
up in the Carbon package.
2002-12-30 20:20:58 +00:00
Jack Jansen 9911fc4a41 Long-obsolete, replaced by Carbon.Sound. 2002-12-30 20:18:57 +00:00
Jack Jansen f044e090c4 Changed the input field for the interpreter to use (in the preferences
window) to a combobox listing the known interpreters.
2002-12-26 22:10:53 +00:00
Jack Jansen 9431e48d23 macfsn is gone. 2002-12-26 21:17:42 +00:00
Jack Jansen 6dd561bdfd Integrated macfsn into macfs, and made the Standard File calls return the
correct FSSpec implementations.
2002-12-26 21:09:39 +00:00
Jack Jansen 315e9bebcd Return the macfs variation for FSSpec and Alias, not the underlying
Carbon.File version, so the old method names work.
2002-12-26 20:46:54 +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 cfe28362fb Changed folder name for apps from Python to MacPython-$(VERSION) (for a
normal 2.3 framework install) and MacPython-OSX-$(VERSION) (for the
experimental Jaguar addon install).
2002-12-25 22:31:28 +00:00
Jack Jansen 073ac9fd0e Added File and Folder, removed macfs. 2002-12-24 13:11:19 +00:00
Jack Jansen e77f58a2be Fixed typo. 2002-12-24 13:09:28 +00:00
Jack Jansen e072b876e0 Removed macfs, added File and Folder. 2002-12-24 13:08:52 +00:00
Jack Jansen 487197dd53 Updated for demise of macfs. 2002-12-24 13:07:58 +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 ae3cb6cf29 Got rid of Mac/Relnotes, and started on mac-specific release notes in NEWS. 2002-12-23 11:25:49 +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 4235e71acc A replacement for the macfs extension module, implemented with normal
(generated) Carbon module functionality.

Not 100% complete yet, but at least the IDE doesn't crash on startup.
2002-12-19 23:26:07 +00:00
Jack Jansen 4f0e05f738 Gone: the constants have been moved to macfs.py (which, upon import, also
poses as MACFS for backward compatibility).
2002-12-19 23:24:37 +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 58fc91f947 This module will shortly replace the builtin module macfs. It is not
complete yet, but it should work. It will be finished (and renamed)
shortly.
2002-12-17 23:28:24 +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 b4289b5771 This now contains constants from Files.h, Aliases.h and Finder.h. 2002-12-17 22:21: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