summaryrefslogtreecommitdiffstats
path: root/Mac/Demo/waste
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-01-29 15:32:00 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-01-29 15:32:00 (GMT)
commit01a2d9e281a3b9ce7762c1ee192ae1f38d037fe7 (patch)
treea82d21b09c0d3a22ddb789e78b8d0229ade3766a /Mac/Demo/waste
parentbf21bef2543e5045f3569cd9227d6b7921dda59c (diff)
downloadcpython-01a2d9e281a3b9ce7762c1ee192ae1f38d037fe7.zip
cpython-01a2d9e281a3b9ce7762c1ee192ae1f38d037fe7.tar.gz
cpython-01a2d9e281a3b9ce7762c1ee192ae1f38d037fe7.tar.bz2
Use FSpCreateResFile() in stead of CreateResFile().
Don't call OpenDeskAcc() and AppendResMenu() on Carbon.
Diffstat (limited to 'Mac/Demo/waste')
-rw-r--r--Mac/Demo/waste/htmled.py3
-rw-r--r--Mac/Demo/waste/swed.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/Mac/Demo/waste/htmled.py b/Mac/Demo/waste/htmled.py
index b66814a..7643947 100644
--- a/Mac/Demo/waste/htmled.py
+++ b/Mac/Demo/waste/htmled.py
@@ -14,6 +14,7 @@ import WASTEconst
import Scrap
import os
import macfs
+import MACFS
import regsub
import string
import htmllib
@@ -243,7 +244,7 @@ class WasteWindow(ScrolledWindow):
try:
rf = Res.FSpOpenResFile(self.path, 3)
except Res.Error:
- Res.CreateResFile(self.path)
+ Res.FSpCreateResFile(self.path, '????', 'TEXT', MACFS.smAllScripts)
rf = Res.FSpOpenResFile(self.path, 3)
styles = Res.Resource('')
soup = Res.Resource('')
diff --git a/Mac/Demo/waste/swed.py b/Mac/Demo/waste/swed.py
index 035c97c..b62fd9a 100644
--- a/Mac/Demo/waste/swed.py
+++ b/Mac/Demo/waste/swed.py
@@ -14,6 +14,7 @@ import WASTEconst
import Scrap
import os
import macfs
+import MACFS
UNDOLABELS = [ # Indexed by WEGetUndoInfo() value
None, "", "typing", "Cut", "Paste", "Clear", "Drag", "Style"]
@@ -212,7 +213,7 @@ class WasteWindow(ScrolledWindow):
try:
rf = Res.FSpOpenResFile(self.path, 3)
except Res.Error:
- Res.CreateResFile(self.path)
+ Res.FSpCreateResFile(self.path, '????', 'TEXT', MACFS.smAllScripts)
rf = Res.FSpOpenResFile(self.path, 3)
styles = Res.Resource('')
soup = Res.Resource('')