├── AboutBox.c ├── AboutBox.h ├── AboutBox.r ├── Clipboard.c ├── Clipboard.h ├── Clipboard.r ├── Localize.r ├── MacIncludes.h ├── Makefile ├── MovieFile.c ├── MovieFile.h ├── MovieFile.r ├── NavigationServicesSupport.c ├── NavigationServicesSupport.h ├── PICTFile.c ├── PICTFile.h ├── PICTFile.r ├── README.md ├── SimpleText.c ├── SimpleText.h ├── SimpleText.r ├── Size.r ├── TextDrag.c ├── TextFile.c ├── TextFile.h ├── TextFile.r ├── ThreeDMetafile.c ├── ThreeDMetafile.h └── ThreeDMetafile.r /AboutBox.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/AboutBox.c -------------------------------------------------------------------------------- /AboutBox.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/AboutBox.h -------------------------------------------------------------------------------- /AboutBox.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/AboutBox.r -------------------------------------------------------------------------------- /Clipboard.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/Clipboard.c -------------------------------------------------------------------------------- /Clipboard.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/Clipboard.h -------------------------------------------------------------------------------- /Clipboard.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/Clipboard.r -------------------------------------------------------------------------------- /Localize.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/Localize.r -------------------------------------------------------------------------------- /MacIncludes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/MacIncludes.h -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # File: Makefile 2 | # Target: SimpleText 3 | # Created: Monday, October 30, 2000 05:02:53 PM 4 | # 5 | # Adapted for https://github.com/ksherlock/mpw 6 | # by Steven Troughton-Smith 7 | # Wednesday, January 14, 2015 8 | # 9 | 10 | MPW=~/bin/mpw 11 | RINCLUDES=/Applications/MPW-GM/Interfaces\&Libraries/Interfaces/RIncludes 12 | 13 | ObjDir= obj 14 | TypeAndCreator= -t APPL -c ttxt 15 | Targ= SimpleText 16 | 17 | Sym-cbn= -sym off 18 | 19 | PPCCOptions= $(Includes) $(Sym-cbn) -proto strict \ 20 | -d TARGET_API_MAC_CARBON=1 \ 21 | -d COMPILING_CARBONLIB=1 \ 22 | -d PM_USE_SESSION_APIS=0 23 | 24 | ### Source Files ### 25 | 26 | SrcFiles= SimpleText.c \ 27 | AboutBox.c \ 28 | Clipboard.c \ 29 | MovieFile.c \ 30 | PICTFile.c \ 31 | TextFile.c \ 32 | NavigationServicesSupport.c \ 33 | TextDrag.c \ 34 | ThreeDMetafile.c 35 | 36 | ### Object Files ### 37 | 38 | ObjFiles-cbn= $(SrcFiles:%.c=$(ObjDir)/%.c.o) 39 | 40 | ### Libraries ### 41 | 42 | LibFiles-cbn= {SharedLibraries}CarbonLib \ 43 | {PPCLibraries}PPCCRuntime.o 44 | 45 | 46 | ### Default Rules ### 47 | 48 | $(ObjDir)/%.c.o : %.c 49 | $(MPW) MrC $< -o $@ $(PPCCOptions) 50 | 51 | ### Build Rules ### 52 | 53 | all: SimpleTextCarbon SimpleTextCarbonRez 54 | 55 | SimpleTextCarbon: $(ObjFiles-cbn) 56 | $(MPW) PPCLink \ 57 | -o $(Targ) -m main \ 58 | $(ObjFiles-cbn) \ 59 | $(LibFiles-cbn) \ 60 | $(Sym-cbn) \ 61 | -mf -d \ 62 | $(TypeAndCreator) 63 | 64 | SimpleTextCarbonRez: 65 | Rez SimpleText.r Size.r -o $(Targ) -a $(TypeAndCreator) -i $(RINCLUDES) 66 | 67 | clean: 68 | rm -rf $(ObjFiles-cbn) \ 69 | SimpleText 70 | 71 | -------------------------------------------------------------------------------- /MovieFile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/MovieFile.c -------------------------------------------------------------------------------- /MovieFile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/MovieFile.h -------------------------------------------------------------------------------- /MovieFile.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/MovieFile.r -------------------------------------------------------------------------------- /NavigationServicesSupport.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/NavigationServicesSupport.c -------------------------------------------------------------------------------- /NavigationServicesSupport.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/NavigationServicesSupport.h -------------------------------------------------------------------------------- /PICTFile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/PICTFile.c -------------------------------------------------------------------------------- /PICTFile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/PICTFile.h -------------------------------------------------------------------------------- /PICTFile.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/PICTFile.r -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | About 2 | ============= 3 | 4 | SimpleText is one of the example Carbon apps included with Apple's Macintosh Programmer's Workshop (MPW), in this case ported to the [MPW compatibility layer](https://github.com/ksherlock/mpw). 5 | 6 | Build process tested on Mac OS X v10.10.1 x86_64. 7 | 8 | Screenshot 9 | ============= 10 | 11 | [![](https://lh6.googleusercontent.com/-0Rt4hN3AUd4/VLW-GetUvBI/AAAAAAAACDQ/bEf8MQ5JEHU/w640-h480-no/Screen%2BShot%2B2015-01-14%2Bat%2B00.42.28.png)](https://lh6.googleusercontent.com/-0Rt4hN3AUd4/VLW-GetUvBI/AAAAAAAACDQ/bEf8MQ5JEHU/w640-h480-no/Screen%2BShot%2B2015-01-14%2Bat%2B00.42.28.png) -------------------------------------------------------------------------------- /SimpleText.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/SimpleText.c -------------------------------------------------------------------------------- /SimpleText.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/SimpleText.h -------------------------------------------------------------------------------- /SimpleText.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/SimpleText.r -------------------------------------------------------------------------------- /Size.r: -------------------------------------------------------------------------------- 1 | #include "Processes.r" resource 'SIZE' (-1) { reserved, acceptSuspendResumeEvents, reserved, canBackground, multiFinderAware, backgroundAndForeground, dontGetFrontClicks, ignoreChildDiedEvents, is32BitCompatible, isHighLevelEventAware, onlyLocalHLEvents, notStationeryAware, dontUseTextEditServices, notDisplayManagerAware, reserved, reserved, 1536000, 1228800 }; -------------------------------------------------------------------------------- /TextDrag.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/TextDrag.c -------------------------------------------------------------------------------- /TextFile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/TextFile.c -------------------------------------------------------------------------------- /TextFile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/TextFile.h -------------------------------------------------------------------------------- /TextFile.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/TextFile.r -------------------------------------------------------------------------------- /ThreeDMetafile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/ThreeDMetafile.c -------------------------------------------------------------------------------- /ThreeDMetafile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/ThreeDMetafile.h -------------------------------------------------------------------------------- /ThreeDMetafile.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/steventroughtonsmith/SimpleText/d389f4679bdd731c80541e1dbf4edcc9a0c0f06f/ThreeDMetafile.r --------------------------------------------------------------------------------