├── .gitignore ├── ConvertImagesInRTFDToJPEG ├── ConvertImagesToJPEG.1 ├── ConvertImagesToJPEG.m ├── ConvertImagesToJPEG.xcodeproj │ ├── gus.mode1v3 │ ├── gus.pbxuser │ └── project.pbxproj └── ConvertImagesToJPEG_Prefix.pch ├── JSCocoaCodaLoader ├── CodaPlugInsController.h ├── English.lproj │ └── InfoPlist.strings ├── Info.plist ├── JSCocoa │ ├── BridgeSupportController.h │ ├── BridgeSupportController.m │ ├── JSCocoaController.h │ ├── JSCocoaController.m │ ├── JSCocoaFFIArgument.h │ ├── JSCocoaFFIArgument.m │ ├── JSCocoaFFIClosure.h │ ├── JSCocoaFFIClosure.m │ ├── JSCocoaPrivateObject.h │ └── JSCocoaPrivateObject.m ├── JSCocoaLoader.xcodeproj │ └── project.pbxproj ├── JSCocoaLoaderPlugIn.h ├── JSCocoaLoaderPlugIn.m ├── JSCocoaLoader_Prefix.pch ├── Uppercase.js └── dist │ └── JSCocoaLoader.codaplugin.zip ├── LICENSE.txt ├── README.markdown ├── WebDAV ├── AppDelegate.h ├── AppDelegate.m ├── English.lproj │ ├── InfoPlist.strings │ └── MainMenu.xib ├── FMFileDAVRequest.h ├── FMFileDAVRequest.m ├── FMWebDAVRequest.h ├── FMWebDAVRequest.m ├── ISO8601DateFormatter-LICENSE.txt ├── ISO8601DateFormatter.h ├── ISO8601DateFormatter.m ├── Info.plist ├── davtest.xcodeproj │ └── project.pbxproj ├── davtest_Prefix.pch └── main.m ├── altermouse └── altermouse.m ├── arrayfilter ├── Array Filter.h ├── Array Filter.m ├── Array Filter.xcodeproj │ ├── default.pbxuser │ ├── gus.mode1v3 │ ├── gus.pbxuser │ └── project.pbxproj ├── Array Filter_Prefix.pch ├── English.lproj │ ├── InfoPlist.strings │ └── main.nib │ │ ├── classes.nib │ │ ├── info.nib │ │ └── keyedobjects.nib └── Info.plist ├── buildapp ├── BuildApp.xcodeproj │ ├── gus.mode1 │ ├── gus.pbxuser │ └── project.pbxproj ├── bin │ ├── babuild.sh │ └── makedisk.sh ├── res │ ├── BuildAppDiskTemplate.sparseimage.gz │ ├── English.lproj │ │ ├── InfoPlist.strings │ │ └── MainMenu.nib │ │ │ ├── classes.nib │ │ │ ├── info.nib │ │ │ └── keyedobjects.nib │ └── Info.plist └── src │ ├── BuildApp_Prefix.pch │ └── main.m ├── derbyboard ├── DerbyBoard.xcodeproj │ ├── gus.mode1 │ ├── gus.pbxuser │ └── project.pbxproj ├── English.lproj │ ├── InfoPlist.strings │ └── MainMenu.nib │ │ ├── classes.nib │ │ ├── info.nib │ │ └── keyedobjects.nib ├── Info.plist ├── images │ └── header.png ├── src │ ├── DBController.h │ ├── DBController.m │ ├── DBProgressWidget.h │ ├── DBProgressWidget.m │ ├── DBTimer.h │ ├── DBTimer.m │ ├── DBWindow.h │ ├── DBWindow.m │ ├── DerbyBoard_Prefix.pch │ └── main.m └── toxic │ ├── CToxicProgressIndicator.h │ └── CToxicProgressIndicator.m ├── fogbugz-safariextension ├── README.markdown ├── fbhacks.safariextension │ ├── Info.plist │ ├── Settings.plist │ └── fbhacks.js └── fbhacks.safariextz ├── gbmoviehack ├── bin │ ├── install.sh │ ├── makedist.sh │ ├── rmsymlinks.sh │ ├── srcdist.sh │ └── symlinks-make.sh ├── gbhack.xcodeproj │ ├── gus.mode1v3 │ ├── gus.pbxuser │ └── project.pbxproj ├── resources │ ├── English.lproj │ │ ├── InfoPlist.strings │ │ └── MovieWindow.nib │ │ │ ├── designable.nib │ │ │ └── keyedobjects.nib │ ├── Info │ └── Info.plist └── src │ ├── GBMovieWindowController.h │ ├── GBMovieWindowController.m │ ├── GBViewAdditions.h │ ├── GBViewAdditions.m │ ├── gbhack.h │ ├── gbhack.m │ ├── gbhack.pch │ └── main.m ├── jsline ├── jsline.1 ├── jsline.m ├── jsline.xcodeproj │ ├── gus.mode1 │ ├── gus.pbxuser │ └── project.pbxproj └── jsline_Prefix.pch ├── khord ├── English.lproj │ ├── InfoPlist.strings │ └── MainMenu.xib ├── Info.plist ├── PTHotKeysLib │ ├── res │ │ ├── English.lproj │ │ │ ├── PTKeyCodes.plist │ │ │ └── PTKeyComboPanel.nib │ │ │ │ ├── classes.nib │ │ │ │ ├── info.nib │ │ │ │ └── keyedobjects.nib │ │ ├── French.lproj │ │ │ ├── PTKeyCodes.plist │ │ │ └── PTKeyComboPanel.nib │ │ │ │ ├── classes.nib │ │ │ │ ├── info.nib │ │ │ │ └── keyedobjects.nib │ │ ├── German.lproj │ │ │ ├── PTKeyCodes.plist │ │ │ └── PTKeyComboPanel.nib │ │ │ │ ├── classes.nib │ │ │ │ ├── info.nib │ │ │ │ └── objects.nib │ │ ├── Japanese.lproj │ │ │ ├── PTKeyCodes.plist │ │ │ └── PTKeyComboPanel.nib │ │ │ │ ├── classes.nib │ │ │ │ ├── info.nib │ │ │ │ └── objects.nib │ │ └── PTKeyboardIcon.tiff │ └── src │ │ ├── PTHotKey.h │ │ ├── PTHotKey.m │ │ ├── PTHotKeyCenter.h │ │ ├── PTHotKeyCenter.m │ │ ├── PTKeyBroadcaster.h │ │ ├── PTKeyBroadcaster.m │ │ ├── PTKeyCodeTranslator.h │ │ ├── PTKeyCodeTranslator.m │ │ ├── PTKeyCombo.h │ │ ├── PTKeyCombo.m │ │ ├── PTKeyComboPanel.h │ │ └── PTKeyComboPanel.m ├── khord.xcodeproj │ └── project.pbxproj ├── khord_Prefix.pch ├── main.m └── src │ ├── KHAppDelegate.h │ ├── KHAppDelegate.m │ ├── KHKeyCatcherView.h │ └── KHKeyCatcherView.m ├── luacore ├── English.lproj │ └── InfoPlist.strings ├── Info.plist ├── LUACORE_README_OR_SUFFER.txt ├── Lua │ ├── lapi.c │ ├── lapi.h │ ├── lauxlib.c │ ├── lauxlib.h │ ├── lbaselib.c │ ├── lcode.c │ ├── lcode.h │ ├── ldblib.c │ ├── ldebug.c │ ├── ldebug.h │ ├── ldo.c │ ├── ldo.h │ ├── ldump.c │ ├── lfunc.c │ ├── lfunc.h │ ├── lgc.c │ ├── lgc.h │ ├── linit.c │ ├── liolib.c │ ├── llex.c │ ├── llex.h │ ├── llimits.h │ ├── lmathlib.c │ ├── lmem.c │ ├── lmem.h │ ├── loadlib.c │ ├── lobject.c │ ├── lobject.h │ ├── lopcodes.c │ ├── lopcodes.h │ ├── loslib.c │ ├── lparser.c │ ├── lparser.h │ ├── lstate.c │ ├── lstate.h │ ├── lstring.c │ ├── lstring.h │ ├── lstrlib.c │ ├── ltable.c │ ├── ltable.h │ ├── ltablib.c │ ├── ltm.c │ ├── ltm.h │ ├── lua.c │ ├── lua.h │ ├── luac.c │ ├── luaconf.h │ ├── lualib.h │ ├── lundump.c │ ├── lundump.h │ ├── lvm.c │ ├── lvm.h │ ├── lzio.c │ ├── lzio.h │ └── print.c ├── LuaCore.xcodeproj │ └── project.pbxproj ├── LuaCore_Prefix.pch ├── Luahack │ ├── English.lproj │ │ ├── InfoPlist.strings │ │ └── KeyGrabber.nib │ │ │ ├── classes.nib │ │ │ ├── info.nib │ │ │ └── keyedobjects.nib │ ├── Info │ ├── Info.plist │ ├── LHExtraFunctions.h │ ├── LHExtraFunctions.m │ ├── LHKeyGrabber.h │ ├── LHKeyGrabber.m │ ├── LHKeyGrabberView.h │ ├── LHKeyGrabberView.m │ ├── Luahack.xcodeproj │ │ └── project.pbxproj │ ├── LuahackLoader.h │ ├── LuahackLoader.m │ ├── Luahack_Prefix.pch │ ├── bin │ │ ├── install.sh │ │ ├── makedist.sh │ │ ├── rmsymlinks.sh │ │ └── symlinks-make.sh │ └── expand.lua ├── Source │ ├── LCCoreGraphics.h │ ├── LCCoreGraphics.m │ ├── LCLua.h │ ├── LCLua.m │ ├── LCLuaFoundation.h │ ├── LCLuaFoundation.m │ ├── LuaCore.h │ ├── LuaObjCBridge.h │ ├── LuaObjCBridge.m │ ├── lposix.c │ ├── lposix.h │ └── modemuncher.c └── TestApp │ ├── cgtest.lua │ ├── classtest.lua │ ├── main.m │ ├── simpletest.lua │ └── stevie.png ├── proxiappwindowbringerupper ├── English.lproj │ └── InfoPlist.strings ├── Info.plist ├── ProxiAppWindowBringerUpper.h ├── ProxiAppWindowBringerUpper.m ├── ProxiAppWindowBringerUpper.xcodeproj │ └── project.pbxproj └── ProxiAppWindowBringerUpper_Prefix.pch ├── randomscripts ├── tm.py └── webkitupdate.py ├── voodoopadplugins ├── documentview │ ├── DocumentView.xcodeproj │ │ ├── gus.mode1v3 │ │ ├── gus.pbxuser │ │ └── project.pbxproj │ ├── DocumentViewPlugin.h │ ├── DocumentViewPlugin.m │ ├── DocumentViewWindow.nib │ │ ├── classes.nib │ │ ├── info.nib │ │ └── keyedobjects.nib │ ├── DocumentViewWindowController.h │ ├── DocumentViewWindowController.m │ ├── Info.plist │ ├── MultiplePageView.h │ └── MultiplePageView.m ├── htmltools │ ├── English.lproj │ │ └── HTMLPreview.nib │ │ │ ├── designable.nib │ │ │ └── keyedobjects.nib │ ├── HTMLTools.xcodeproj │ │ └── project.pbxproj │ ├── HTMLToolsPlugin.h │ ├── HTMLToolsPlugin.m │ ├── Info.plist │ ├── Markdown.pl │ ├── ScriptletWrapper.js │ ├── Text │ │ └── Textile.pm │ ├── Textile.pl │ ├── VPScriptletWriter.h │ ├── VPScriptletWriter.m │ ├── wakka.php │ ├── wakkarun.php │ ├── wakkatest_tmp │ └── wakkatest_tmp.html └── scriptstuff │ ├── ScriptStuff.vpplugin.zip │ └── src │ ├── Info.plist │ ├── PyFontify.py │ ├── ScriptStuff.xcodeproj │ ├── gus.mode1 │ ├── gus.mode1v3 │ ├── gus.pbxuser │ └── project.pbxproj │ ├── ScriptStuffPlugin.h │ ├── ScriptStuffPlugin.m │ ├── py2html.py │ └── py2html.py.html └── vpreader ├── Classes ├── RootViewController.h ├── RootViewController.m ├── SyncViewController.h ├── SyncViewController.m ├── VPReaderAppDelegate.h ├── VPReaderAppDelegate.m ├── WebViewController.h └── WebViewController.m ├── Info.plist ├── MainWindow.xib ├── README.txt ├── RootViewController.xib ├── SyncViewController.xib ├── WebViewController.xib ├── blip ├── MYNetwork │ ├── .hg_archival.txt │ ├── .hgignore │ ├── .hgtags │ ├── BLIP │ │ ├── BLIP Overview.txt │ │ ├── BLIP.h │ │ ├── BLIP.png │ │ ├── BLIPConnection.h │ │ ├── BLIPConnection.m │ │ ├── BLIPDispatcher.h │ │ ├── BLIPDispatcher.m │ │ ├── BLIPMessage.h │ │ ├── BLIPMessage.m │ │ ├── BLIPProperties.h │ │ ├── BLIPProperties.m │ │ ├── BLIPReader.h │ │ ├── BLIPReader.m │ │ ├── BLIPRequest.h │ │ ├── BLIPRequest.m │ │ ├── BLIPTest.m │ │ ├── BLIPWriter.h │ │ ├── BLIPWriter.m │ │ ├── BLIP_Internal.h │ │ ├── Demo │ │ │ ├── BLIP Echo Client-Info.plist │ │ │ ├── BLIPEchoClient.h │ │ │ ├── BLIPEchoClient.m │ │ │ ├── BLIPEchoClient.xib │ │ │ ├── BLIPEchoServer.h │ │ │ └── BLIPEchoServer.m │ │ ├── runBLIPClient │ │ └── runBLIPListener │ ├── Bonjour │ │ ├── MYAddressLookup.h │ │ ├── MYAddressLookup.m │ │ ├── MYBonjourBrowser.h │ │ ├── MYBonjourBrowser.m │ │ ├── MYBonjourQuery.h │ │ ├── MYBonjourQuery.m │ │ ├── MYBonjourRegistration.h │ │ ├── MYBonjourRegistration.m │ │ ├── MYBonjourService.h │ │ └── MYBonjourService.m │ ├── IPAddress.h │ ├── IPAddress.m │ ├── MYNetwork-iPhone.xcodeproj │ │ ├── gus.mode1v3 │ │ ├── gus.pbxuser │ │ └── project.pbxproj │ ├── MYNetwork.xcodeproj │ │ ├── TemplateIcon.icns │ │ └── project.pbxproj │ ├── PortMapper │ │ ├── MYDNSService.h │ │ ├── MYDNSService.m │ │ ├── MYPortMapper.h │ │ ├── MYPortMapper.m │ │ └── PortMapperTest.m │ ├── Python │ │ ├── BLIP.py │ │ ├── BLIPConnectionTest.py │ │ └── BLIPListenerTest.py │ ├── TCP │ │ ├── TCPConnection.h │ │ ├── TCPConnection.m │ │ ├── TCPEndpoint+Certs.m │ │ ├── TCPEndpoint.h │ │ ├── TCPEndpoint.m │ │ ├── TCPListener.h │ │ ├── TCPListener.m │ │ ├── TCPStream.h │ │ ├── TCPStream.m │ │ ├── TCPWriter.h │ │ ├── TCPWriter.m │ │ └── TCP_Internal.h │ ├── iPhone │ │ ├── Classes │ │ │ ├── HelloWorldAppDelegate.h │ │ │ ├── HelloWorldAppDelegate.m │ │ │ ├── MyViewController.h │ │ │ └── MyViewController.m │ │ ├── Default.png │ │ ├── HelloWorld.xib │ │ ├── Icon.png │ │ ├── Info.plist │ │ ├── MYNetwork_iPhone_Prefix.pch │ │ ├── MainWindow.xib │ │ └── main.m │ └── maindocs.h └── MYUtilities │ ├── .hg_archival.txt │ ├── .hgignore │ ├── AudioUtils.h │ ├── AudioUtils.mm │ ├── Base64.h │ ├── Base64.m │ ├── CollectionUtils.h │ ├── CollectionUtils.m │ ├── ConcurrentOperation.h │ ├── ConcurrentOperation.m │ ├── DateUtils.h │ ├── DateUtils.m │ ├── DictObject.h │ ├── DictObject.m │ ├── ExceptionUtils.h │ ├── ExceptionUtils.m │ ├── FileAlias.h │ ├── FileAlias.m │ ├── FileUtils.h │ ├── FileUtils.m │ ├── GoogleToolboxSubset │ ├── GTMDefines.h │ ├── GTMNSData+zlib.h │ └── GTMNSData+zlib.m │ ├── GraphicsUtils.h │ ├── GraphicsUtils.m │ ├── IChatUtils.h │ ├── IChatUtils.m │ ├── ImageAndTextCell.h │ ├── ImageAndTextCell.m │ ├── IntegerArray.h │ ├── IntegerArray.m │ ├── KVUtils.h │ ├── KVUtils.m │ ├── Logging.h │ ├── Logging.m │ ├── MYAddressField.h │ ├── MYAddressField.m │ ├── MYAnimatingSplitView.h │ ├── MYAnimatingSplitView.m │ ├── MYDirectoryWatcher.h │ ├── MYDirectoryWatcher.m │ ├── MYErrorUtils.h │ ├── MYErrorUtils.m │ ├── MYError_CSSMErrorDomain.strings │ ├── MYTableView.h │ ├── MYTableView.m │ ├── MYTask.h │ ├── MYTask.m │ ├── MYURLFormatter.h │ ├── MYURLFormatter.m │ ├── MYUtilities.xcconfig │ ├── MYUtilitiesTest_main.m │ ├── MYUtilities_Debug.xcconfig │ ├── MYUtilities_Prefix.pch │ ├── MYUtilities_Release.xcconfig │ ├── MYWindowUtils.h │ ├── MYWindowUtils.m │ ├── MYXMLUtils.h │ ├── MYXMLUtils.m │ ├── MailBridge.h │ ├── MailUtils.h │ ├── MailUtils.m │ ├── MurmurHash.c │ ├── MurmurHash.h │ ├── NSData+Mnemonic.h │ ├── NSData+Mnemonic.m │ ├── NSData+gzip.h │ ├── NSData+gzip.m │ ├── Target.h │ ├── Target.m │ ├── Test.h │ ├── Test.m │ ├── TimeIntervalFormatter.h │ ├── TimeIntervalFormatter.m │ ├── URLUtils.h │ ├── URLUtils.m │ ├── UniqueWindowController.h │ ├── UniqueWindowController.m │ ├── ValueArray.h │ ├── ValueArray.m │ ├── With.h │ ├── With.m │ ├── iChatBridge.h │ └── mnemonicode-0.73 │ ├── Makefile │ ├── README │ ├── TODO │ ├── mn_wordlist.c │ ├── mndecode.c │ ├── mnemonic.c │ ├── mnemonic.h │ └── mnencode.c ├── main.m ├── res ├── Default.png ├── VPRScreenshot.png ├── VPRScreenshot.tiff ├── VPReader.acorn ├── VPReader.png ├── VPReaderStoreIcon.tiff ├── buttons.ai ├── doclist.acorn ├── doclist.png ├── homebutton.acorn ├── homebutton.png ├── leftbutton.acorn ├── leftbutton.png ├── rightbutton.acorn └── rightbutton.png ├── vpreader.xcodeproj └── project.pbxproj └── vpreader_Prefix.pch /.gitignore: -------------------------------------------------------------------------------- 1 | voodoopadplugins/htmltools/HTMLTools.xcodeproj/gus.pbxuser 2 | voodoopadplugins/htmltools/HTMLTools.xcodeproj/gus.mode1v3 3 | WebDAV/davtest.xcodeproj/gus.pbxuser 4 | WebDAV/davtest.xcodeproj/gus.mode1v3 5 | -------------------------------------------------------------------------------- /ConvertImagesInRTFDToJPEG/ConvertImagesToJPEG_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'ConvertImagesToJPEG' target in the 'ConvertImagesToJPEG' project. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /JSCocoaCodaLoader/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/JSCocoaCodaLoader/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /JSCocoaCodaLoader/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleName 10 | ${PRODUCT_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | com.flyingmeat.Coda.JSCocoaLoader 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | NSPrincipalClass 24 | JSCocoaLoaderPlugIn 25 | 26 | 27 | -------------------------------------------------------------------------------- /JSCocoaCodaLoader/JSCocoa/BridgeSupportController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BridgeSupportController.h 3 | // JSCocoa 4 | // 5 | // Created by Patrick Geiller on 08/07/08. 6 | // Copyright 2008 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface BridgeSupportController : NSObject { 12 | 13 | 14 | NSMutableArray* paths; 15 | NSMutableArray* xmlDocuments; 16 | 17 | NSMutableDictionary* hash; 18 | } 19 | 20 | + (id)sharedController; 21 | 22 | - (BOOL)loadBridgeSupport:(NSString*)path; 23 | - (BOOL)isBridgeSupportLoaded:(NSString*)path; 24 | - (NSUInteger)bridgeSupportIndexForString:(NSString*)string; 25 | 26 | /* 27 | - (NSString*)query:(NSString*)name withType:(NSString*)type; 28 | - (NSString*)query:(NSString*)name withType:(NSString*)type inBridgeSupportFile:(NSString*)file; 29 | */ 30 | - (NSString*)queryName:(NSString*)name; 31 | - (NSString*)queryName:(NSString*)name type:(NSString*)type; 32 | 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /JSCocoaCodaLoader/JSCocoa/JSCocoaFFIClosure.h: -------------------------------------------------------------------------------- 1 | // 2 | // JSCocoaFFIClosure.h 3 | // JSCocoa 4 | // 5 | // Created by Patrick Geiller on 29/07/08. 6 | // Copyright 2008 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import "JSCocoaFFIArgument.h" 12 | #define MACOSX 13 | #import 14 | 15 | 16 | @interface JSCocoaFFIClosure : NSObject { 17 | 18 | JSValueRef jsFunction; 19 | JSContextRef ctx; 20 | 21 | ffi_cif cif; 22 | ffi_closure closure; 23 | ffi_type** argTypes; 24 | 25 | NSMutableArray* encodings; 26 | 27 | JSObjectRef jsThisObject; 28 | 29 | BOOL isObjC; 30 | } 31 | 32 | - (void)setJSFunction:(JSValueRef)fn inContext:(JSContextRef)ctx argumentEncodings:(NSMutableArray*)argumentEncodings objC:(BOOL)objC; 33 | - (void*)functionPointer; 34 | - (void)calledByClosureWithArgs:(void**)args returnValue:(void*)returnValue; 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /JSCocoaCodaLoader/JSCocoa/JSCocoaPrivateObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // JSCocoaPrivateObject.h 3 | // JSCocoa 4 | // 5 | // Created by Patrick Geiller on 09/07/08. 6 | // Copyright 2008 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | 15 | @interface JSCocoaPrivateObject : NSObject { 16 | 17 | NSString* type; 18 | NSString* xml; 19 | NSString* methodName; 20 | NSString* structureName; 21 | 22 | NSString* declaredType; 23 | // void* ptr; 24 | void* rawPointer; 25 | 26 | id object; 27 | 28 | Method method; 29 | 30 | JSValueRef jsValue; 31 | JSContextRef ctx; 32 | 33 | BOOL isAutoCall; 34 | BOOL retainObject; 35 | } 36 | 37 | @property (copy) NSString* type; 38 | @property (copy) NSString* xml; 39 | @property (copy) NSString* methodName; 40 | @property (copy) NSString* structureName; 41 | @property (copy) NSString* declaredType; 42 | @property BOOL isAutoCall; 43 | 44 | //- (void)setPtr:(void*)ptrValue; 45 | //- (void*)ptr; 46 | 47 | - (void)setObject:(id)o; 48 | - (id)object; 49 | 50 | - (void)setMethod:(Method)m; 51 | - (Method)method; 52 | 53 | - (void)setJSValueRef:(JSValueRef)v ctx:(JSContextRef)ctx; 54 | - (JSValueRef)jsValueRef; 55 | 56 | - (void*)rawPointer; 57 | - (void)setRawPointer:(void*)rp; 58 | 59 | - (void)setObjectNoRetain:(id)o; 60 | 61 | 62 | @end 63 | -------------------------------------------------------------------------------- /JSCocoaCodaLoader/JSCocoaLoaderPlugIn.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import "CodaPluginsController.h" 3 | 4 | @class CodaPlugInsController; 5 | 6 | @interface JSCocoaLoaderPlugIn : NSObject 7 | { 8 | CodaPlugInsController* controller; 9 | } 10 | 11 | - (id)initWithPlugInController:(CodaPlugInsController*)controller bundle:(NSBundle*)aBundle; 12 | - (void) findJSCocoaScripts; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /JSCocoaCodaLoader/JSCocoaLoader_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Capitalize' target in the 'Capitalize' project. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | 9 | 10 | #define debug NSLog 11 | -------------------------------------------------------------------------------- /JSCocoaCodaLoader/Uppercase.js: -------------------------------------------------------------------------------- 1 | codaPluginsController = JSCocoaLoaderPlugIn.codaPluginsController(); 2 | var tv = codaPluginsController.focusedTextView(null); 3 | var selectedText = tv.selectedText(); 4 | 5 | if (selectedText != null) { 6 | tv.insertText_(selectedText.uppercaseString()) 7 | } 8 | 9 | // test here. -------------------------------------------------------------------------------- /JSCocoaCodaLoader/dist/JSCocoaLoader.codaplugin.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/JSCocoaCodaLoader/dist/JSCocoaLoader.codaplugin.zip -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2010 Flying Meat Inc. All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without modification, are 4 | permitted provided that the following conditions are met: 5 | 6 | 1. Redistributions of source code must retain the above copyright notice, this list of 7 | conditions and the following disclaimer. 8 | 9 | 2. Redistributions in binary form must reproduce the above copyright notice, this list 10 | of conditions and the following disclaimer in the documentation and/or other materials 11 | provided with the distribution. 12 | 13 | THIS SOFTWARE IS PROVIDED BY FLYING MEAT INC. ``AS IS'' AND ANY EXPRESS OR IMPLIED 14 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 15 | FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FLYING MEAT INC. OR 16 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 17 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 18 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 19 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 20 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 21 | ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 | 23 | The views and conclusions contained in the software and documentation are those of the 24 | authors and should not be interpreted as representing official policies, either expressed 25 | or implied, of Flying Meat Inc. -------------------------------------------------------------------------------- /README.markdown: -------------------------------------------------------------------------------- 1 | FlyCode 2 | ======= 3 | 4 | This is a collection of random bits of code from the folks at Flying Meat: http://flyingmeat.com/ 5 | -------------------------------------------------------------------------------- /WebDAV/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // davtest 4 | // 5 | // Created by August Mueller on 8/6/08. 6 | // Copyright 2008 Flying Meat Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface AppDelegate : NSObject { 13 | BOOL waitingOnAuthentication; 14 | } 15 | 16 | - (void)testErrorAction:(id)sender; 17 | - (void)testCopyAction:(id)sender; 18 | - (void)testBadUrlAction:(id)sender; 19 | - (void)testReleaseStuffAction:(id)sender; 20 | @end 21 | -------------------------------------------------------------------------------- /WebDAV/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/WebDAV/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /WebDAV/FMFileDAVRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // FMFileDAVRequest.h 3 | // davtest 4 | // 5 | // Created by August Mueller on 12/28/09. 6 | // Copyright 2009 Flying Meat Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "FMWebDAVRequest.h" 11 | 12 | @interface FMFileDAVRequest : FMWebDAVRequest { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /WebDAV/ISO8601DateFormatter-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright © 2006 Peter Hosey 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 5 | Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 6 | Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 7 | Neither the name of Peter Hosey nor the names of his contributors may be used to endorse or promote products derived from this software without specific prior written permission. 8 | 9 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 10 | -------------------------------------------------------------------------------- /WebDAV/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.yourcompany.${PRODUCT_NAME:identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | NSMainNibFile 24 | MainMenu 25 | NSPrincipalClass 26 | NSApplication 27 | 28 | 29 | -------------------------------------------------------------------------------- /WebDAV/davtest_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'davtest' target in the 'davtest' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | 9 | #define debug NSLog 10 | -------------------------------------------------------------------------------- /WebDAV/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // davtest 4 | // 5 | // Created by August Mueller on 8/6/08. 6 | // Copyright Flying Meat Inc 2008. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | return NSApplicationMain(argc, (const char **) argv); 14 | } 15 | -------------------------------------------------------------------------------- /arrayfilter/Array Filter.h: -------------------------------------------------------------------------------- 1 | // 2 | // Array Filter.h 3 | // Array Filter 4 | // 5 | // Created by August Mueller on 4/8/07. 6 | // Copyright 2007 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface Array_Filter : AMBundleAction 13 | { 14 | } 15 | 16 | - (id)runWithInput:(id)input fromAction:(AMAction *)anAction error:(NSDictionary **)errorInfo; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /arrayfilter/Array Filter.m: -------------------------------------------------------------------------------- 1 | // 2 | // Array Filter.m 3 | // Array Filter 4 | // 5 | // Created by August Mueller on 4/8/07. 6 | // Copyright 2007 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import "Array Filter.h" 10 | 11 | #define debug NSLog 12 | 13 | @implementation Array_Filter 14 | 15 | - (id)runWithInput:(id)input fromAction:(AMAction *)anAction error:(NSDictionary **)errorInfo { 16 | 17 | NSMutableArray *output = [NSMutableArray array]; 18 | NSString *suffixFilter = [[self parameters] objectForKey:@"suffixFilter"]; 19 | BOOL negateSuffix = [[[self parameters] objectForKey:@"negateSuffix"] boolValue]; 20 | id item = nil; 21 | 22 | NSEnumerator *e = [input objectEnumerator]; 23 | while ((item = [e nextObject])) { 24 | if (negateSuffix && (![[item description] hasSuffix:suffixFilter])) { 25 | [output addObject:item]; 26 | } 27 | else if (!negateSuffix && [[item description] hasSuffix:suffixFilter]) { 28 | [output addObject:item]; 29 | } 30 | } 31 | 32 | debug(@"output: %@", output); 33 | 34 | return output; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /arrayfilter/Array Filter.xcodeproj/default.pbxuser: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | 089C1669FE841209C02AAC07 = { 4 | activeBuildStyle = 014CEA420018CDE011CA2923; 5 | activeExecutable = 658A2E03067AB99300421F51; 6 | activeTarget = 8D5B49AC048680CD000E48DA; 7 | codeSenseManager = 658A2DD0067AB96600421F51; 8 | executables = ( 9 | 658A2E03067AB99300421F51, 10 | ); 11 | sourceControlManager = 658A2DCF067AB96600421F51; 12 | userBuildSettings = { 13 | }; 14 | }; 15 | 658A2DCF067AB96600421F51 = { 16 | fallbackIsa = XCSourceControlManager; 17 | isa = PBXSourceControlManager; 18 | scmConfiguration = { 19 | }; 20 | scmType = ""; 21 | }; 22 | 658A2DD0067AB96600421F51 = { 23 | indexTemplatePath = ""; 24 | isa = PBXCodeSenseManager; 25 | usesDefaults = 1; 26 | wantsCodeCompletion = 1; 27 | wantsCodeCompletionAutoPopup = 0; 28 | wantsCodeCompletionAutoSuggestions = 1; 29 | wantsCodeCompletionCaseSensitivity = 1; 30 | wantsCodeCompletionListAlways = 0; 31 | wantsCodeCompletionOnlyMatchingItems = 1; 32 | wantsCodeCompletionParametersIncluded = 1; 33 | wantsCodeCompletionPlaceholdersInserted = 1; 34 | wantsCodeCompletionTabCompletes = 1; 35 | wantsIndex = 1; 36 | }; 37 | 658A2E03067AB99300421F51 = { 38 | activeArgIndex = 0; 39 | activeArgIndices = ( 40 | YES, 41 | ); 42 | argumentStrings = ( 43 | "-action \"Array Filter.action\"", 44 | ); 45 | configStateDict = { 46 | }; 47 | cppStopOnCatchEnabled = 0; 48 | cppStopOnThrowEnabled = 0; 49 | customDataFormattersEnabled = 1; 50 | debuggerPlugin = GDBDebugging; 51 | disassemblyDisplayState = 0; 52 | dylibVariantSuffix = ""; 53 | enableDebugStr = 1; 54 | environmentEntries = ( 55 | ); 56 | isa = PBXExecutable; 57 | launchableReference = 658A2E04067AB99300421F51; 58 | libgmallocEnabled = 0; 59 | name = Automator; 60 | shlibInfoDictList = ( 61 | ); 62 | sourceDirectories = ( 63 | ); 64 | }; 65 | 658A2E04067AB99300421F51 = { 66 | isa = PBXFileReference; 67 | lastKnownFileType = wrapper.application; 68 | name = Automator.app; 69 | path = /Applications/Automator.app; 70 | refType = 0; 71 | sourceTree = ""; 72 | }; 73 | 8D5B49AC048680CD000E48DA = { 74 | activeExec = 0; 75 | }; 76 | } 77 | -------------------------------------------------------------------------------- /arrayfilter/Array Filter_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Array Filter' target in the 'Array Filter' project. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /arrayfilter/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/arrayfilter/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /arrayfilter/English.lproj/main.nib/classes.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBClasses 6 | 7 | 8 | CLASS 9 | AMAppleScriptAction 10 | LANGUAGE 11 | ObjC 12 | OUTLETS 13 | 14 | _script 15 | NSAppleScript 16 | 17 | SUPERCLASS 18 | AMBundleAction 19 | 20 | 21 | CLASS 22 | AMBundleAction 23 | LANGUAGE 24 | ObjC 25 | OUTLETS 26 | 27 | view 28 | NSView 29 | 30 | SUPERCLASS 31 | AMAction 32 | 33 | 34 | ACTIONS 35 | 36 | completed 37 | id 38 | run 39 | id 40 | runNext 41 | id 42 | stop 43 | id 44 | 45 | CLASS 46 | AMAction 47 | LANGUAGE 48 | ObjC 49 | SUPERCLASS 50 | NSObject 51 | 52 | 53 | IBVersion 54 | 1 55 | 56 | 57 | -------------------------------------------------------------------------------- /arrayfilter/English.lproj/main.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 592 7 | IBOpenObjects 8 | 9 | 5 10 | 11 | IBSystem Version 12 | 9A377a 13 | targetFramework 14 | IBCocoaFramework 15 | 16 | 17 | -------------------------------------------------------------------------------- /arrayfilter/English.lproj/main.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/arrayfilter/English.lproj/main.nib/keyedobjects.nib -------------------------------------------------------------------------------- /buildapp/bin/makedisk.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | BASE_DIR=`cd ${0%/*}/..; pwd` 4 | 5 | cd $BASE_DIR 6 | 7 | # eject any disks named BuildApp 8 | if [ -d /Volumes/BuildApp ]; then 9 | /usr/bin/hdiutil unmount /Volumes/BuildApp 10 | fi 11 | 12 | # remove any versions of this that might still be around for some reason. 13 | if [ -f /tmp/BuildApp.dmg ]; then 14 | rm /tmp/BuildApp.dmg 15 | fi 16 | 17 | # expand our template to /tmp 18 | /usr/bin/gunzip --to-stdout res/BuildAppDiskTemplate.sparseimage.gz > /tmp/BuildAppWrite.sparseimage 19 | 20 | # mount the disk. 21 | /usr/bin/hdiutil attach /tmp/BuildAppWrite.sparseimage 22 | 23 | sleep 2 24 | 25 | # copy our app into the disk image 26 | cp -R ~/svnbuilds/BuildApp.app/* /Volumes/BuildApp/BuildApp.app/. 27 | 28 | /usr/bin/hdiutil eject /Volumes/BuildApp 29 | 30 | sleep 2 31 | 32 | # convert to a "UDIF zlib-compressed image" 33 | /usr/bin/hdiutil convert /tmp/BuildAppWrite.sparseimage -format UDZO -o /tmp/BuildApp 34 | 35 | # cleanup 36 | rm /tmp/BuildAppWrite.sparseimage 37 | 38 | # move it to our official builds dir 39 | mv /tmp/BuildApp.dmg ~/svnbuilds/BuildAppPreview.dmg 40 | 41 | -------------------------------------------------------------------------------- /buildapp/res/BuildAppDiskTemplate.sparseimage.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/buildapp/res/BuildAppDiskTemplate.sparseimage.gz -------------------------------------------------------------------------------- /buildapp/res/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/buildapp/res/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /buildapp/res/English.lproj/MainMenu.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ({CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }); 3 | IBVersion = 1; 4 | } -------------------------------------------------------------------------------- /buildapp/res/English.lproj/MainMenu.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 159 127 356 240 0 0 1920 1178 7 | IBEditorPositions 8 | 9 | 29 10 | 156 406 338 44 0 0 1920 1178 11 | 12 | IBFramework Version 13 | 446.1 14 | IBOpenObjects 15 | 16 | 29 17 | 21 18 | 19 | IBSystem Version 20 | 8P135 21 | IBUserGuides 22 | 23 | 21 24 | 25 | guideLocations 26 | 27 | Vertical:241.000000 28 | Vertical:241.000000 29 | 30 | guidesLocked 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /buildapp/res/English.lproj/MainMenu.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/buildapp/res/English.lproj/MainMenu.nib/keyedobjects.nib -------------------------------------------------------------------------------- /buildapp/res/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.yourcompany.BuildApp 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | BUILDID 23 | NSMainNibFile 24 | MainMenu 25 | NSPrincipalClass 26 | NSApplication 27 | 28 | 29 | -------------------------------------------------------------------------------- /buildapp/src/BuildApp_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'BuildApp' target in the 'BuildApp' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /buildapp/src/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // BuildApp 4 | // 5 | // Created by August Mueller on 3/21/07. 6 | // Copyright Flying Meat Inc. 2007. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | return NSApplicationMain(argc, (const char **) argv); 14 | } 15 | -------------------------------------------------------------------------------- /derbyboard/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/derbyboard/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /derbyboard/English.lproj/MainMenu.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | { 4 | ACTIONS = { 5 | addPointToTeamA = id; 6 | addPointToTeamB = id; 7 | movePeriodBackOneMinute = id; 8 | movePeriodBackOneSecond = id; 9 | movePeriodForwardOneMinute = id; 10 | movePeriodForwardOneSecond = id; 11 | resetJam = id; 12 | resetPeriod = id; 13 | startPeriod = id; 14 | subtractPointToTeamA = id; 15 | subtractPointToTeamB = id; 16 | toggleFullScreen = id; 17 | toggleJam = id; 18 | togglePeriodTimer = id; 19 | }; 20 | CLASS = DBController; 21 | LANGUAGE = ObjC; 22 | OUTLETS = { 23 | jamProgress = CToxicProgressIndicator; 24 | periodTime = NSTextField; 25 | teamAName = NSTextField; 26 | teamAScore = NSTextField; 27 | teamBName = NSTextField; 28 | teamBScore = NSTextField; 29 | }; 30 | SUPERCLASS = NSWindowController; 31 | }, 32 | {CLASS = DBProgressWidget; LANGUAGE = ObjC; SUPERCLASS = NSProgressIndicator; }, 33 | {CLASS = DBWindow; LANGUAGE = ObjC; SUPERCLASS = NSWindow; }, 34 | {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 35 | {CLASS = NSDatePicker; LANGUAGE = ObjC; SUPERCLASS = NSControl; } 36 | ); 37 | IBVersion = 1; 38 | } -------------------------------------------------------------------------------- /derbyboard/English.lproj/MainMenu.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 231 225 641 298 0 0 1920 1178 7 | IBEditorPositions 8 | 9 | 29 10 | 99 863 338 44 0 0 1920 1178 11 | 12 | IBFramework Version 13 | 446.1 14 | IBOpenObjects 15 | 16 | 29 17 | 21 18 | 268 19 | 20 | IBSystem Version 21 | 8P4037 22 | IBUserGuides 23 | 24 | 21 25 | 26 | guideLocations 27 | 28 | Vertical:320.000000 29 | Vertical:320.000000 30 | 31 | guidesLocked 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /derbyboard/English.lproj/MainMenu.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/derbyboard/English.lproj/MainMenu.nib/keyedobjects.nib -------------------------------------------------------------------------------- /derbyboard/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.yourcompany.DerbyBoard 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | NSMainNibFile 24 | MainMenu 25 | NSPrincipalClass 26 | NSApplication 27 | 28 | 29 | -------------------------------------------------------------------------------- /derbyboard/images/header.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/derbyboard/images/header.png -------------------------------------------------------------------------------- /derbyboard/src/DBController.h: -------------------------------------------------------------------------------- 1 | // 2 | // DBController.h 3 | // DerbyBoard 4 | // 5 | // Created by August Mueller on 5/8/07. 6 | // Copyright 2007 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import "CToxicProgressIndicator.h" 12 | #import "DBTimer.h" 13 | 14 | @interface DBController : NSWindowController { 15 | IBOutlet CToxicProgressIndicator *jamProgress; 16 | IBOutlet NSTextField *periodTime; 17 | IBOutlet NSTextField *teamAScore; 18 | IBOutlet NSTextField *teamBScore; 19 | 20 | IBOutlet NSTextField *teamAName; 21 | IBOutlet NSTextField *teamBName; 22 | 23 | DBTimer *_periodTimer; 24 | DBTimer *_jamTimer; 25 | 26 | NSTimeInterval _jamStartTime; 27 | NSTimeInterval _periodStartTime; 28 | 29 | int _teamAScoreCount; 30 | int _teamBScoreCount; 31 | 32 | NSRect _preFullScreenFrame; 33 | } 34 | 35 | - (void) toggleFullScreen:(id)sender; 36 | 37 | - (void) toggleJam:(id)sender; 38 | - (void) resetJam:(id)sender; 39 | 40 | - (void) startPeriod:(id)sender; 41 | - (void) resetPeriod:(id)sender; 42 | - (void) togglePeriodTimer:(id)sender; 43 | - (void) movePeriodBackOneSecond:(id)sender; 44 | - (void) movePeriodBackOneMinute:(id)sender; 45 | - (void) movePeriodForwardOneSecond:(id)sender; 46 | - (void) movePeriodForwardOneMinute:(id)sender; 47 | 48 | - (void) addPointToTeamA:(id)sender; 49 | - (void) addPointToTeamB:(id)sender; 50 | - (void) subtractPointToTeamA:(id)sender; 51 | - (void) subtractPointToTeamB:(id)sender; 52 | 53 | - (DBTimer *)jamTimer; 54 | - (void)setJamTimer:(DBTimer *)newJamTimer; 55 | 56 | - (DBTimer *)periodTimer; 57 | - (void)setPeriodTimer:(DBTimer *)newPeriodTimer; 58 | 59 | - (void) updatePeriodTime; 60 | - (void) updateScore; 61 | - (void) updatePrefs; 62 | - (int) jamLength; 63 | @end 64 | -------------------------------------------------------------------------------- /derbyboard/src/DBProgressWidget.h: -------------------------------------------------------------------------------- 1 | // 2 | // DBProgressWidget.h 3 | // DerbyBoard 4 | // 5 | // Created by August Mueller on 5/6/07. 6 | // Copyright 2007 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface DBProgressWidget : NSProgressIndicator { 13 | BOOL halted; 14 | NSImage *haltedImage; 15 | 16 | float frameWidth; 17 | NSColor *frameColor; 18 | NSColor *wedgeColor; 19 | NSColor *backgroundColor; 20 | 21 | BOOL useSteps; 22 | double stepAngle; 23 | BOOL overFillFirstStep; 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /derbyboard/src/DBTimer.h: -------------------------------------------------------------------------------- 1 | // 2 | // DBTimer.h 3 | // DerbyBoard 4 | // 5 | // Created by August Mueller on 5/8/07. 6 | // Copyright 2007 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface DBTimer : NSObject { 13 | NSTimeInterval _elapsedTime; 14 | NSTimeInterval _timerStart; 15 | NSTimer *_timer; 16 | id delegate; 17 | } 18 | 19 | + (id) timer; 20 | 21 | - (NSTimeInterval)elapsedTime; 22 | - (void)setElapsedTime:(NSTimeInterval)newElapsedTime; 23 | - (NSTimeInterval)timerStart; 24 | - (void)setTimerStart:(NSTimeInterval)newTimerStart; 25 | - (NSTimer *)timer; 26 | - (void)setTimer:(NSTimer *)newTimer; 27 | - (id)delegate; 28 | - (void)setDelegate:(id)newDelegate; 29 | 30 | - (void) toggle; 31 | - (void) start; 32 | - (void) stop; 33 | 34 | - (BOOL) isRunning; 35 | 36 | @end 37 | 38 | @interface NSObject (DBTimerAdditions) 39 | 40 | - (void) timerDidUpdate:(DBTimer*)timer; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /derbyboard/src/DBWindow.h: -------------------------------------------------------------------------------- 1 | // 2 | // DBWindow.h 3 | // DerbyBoard 4 | // 5 | // Created by August Mueller on 5/6/07. 6 | // Copyright 2007 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface DBWindow : NSWindow { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /derbyboard/src/DBWindow.m: -------------------------------------------------------------------------------- 1 | #import "DBWindow.h" 2 | 3 | 4 | @interface NSObject (VoodooPadWindowNSObjectAdditions) 5 | - (BOOL)window:(NSWindow*)window shouldConstrainFrameRect:(NSRect)frameRect toScreen:(NSScreen *)screen; 6 | 7 | @end 8 | 9 | @implementation DBWindow 10 | 11 | - (void) awakeFromNib { 12 | [self setMovableByWindowBackground:YES]; 13 | NSRect backBounds = [self frame]; 14 | backBounds.origin = NSZeroPoint; 15 | 16 | NSClipView *colorView = [[NSClipView alloc] initWithFrame:backBounds]; 17 | [colorView setBackgroundColor:[NSColor blackColor]]; 18 | [colorView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; 19 | [[self contentView] addSubview:colorView positioned:NSWindowBelow relativeTo:nil]; 20 | 21 | [[self contentView] setAutoresizesSubviews:YES]; 22 | } 23 | 24 | 25 | - (NSRect)constrainFrameRect:(NSRect)frameRect toScreen:(NSScreen *)screen { 26 | 27 | if ([self delegate] && [[self delegate] respondsToSelector:@selector(window:shouldConstrainFrameRect:toScreen:)]) { 28 | if (![[self delegate] window:self shouldConstrainFrameRect:frameRect toScreen:screen]) { 29 | return frameRect; 30 | } 31 | } 32 | 33 | return [super constrainFrameRect:frameRect toScreen:screen]; 34 | } 35 | 36 | 37 | 38 | 39 | @end 40 | 41 | -------------------------------------------------------------------------------- /derbyboard/src/DerbyBoard_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'DerbyBoard' target in the 'DerbyBoard' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | 9 | #define debug NSLog 10 | 11 | 12 | -------------------------------------------------------------------------------- /derbyboard/src/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // DerbyBoard 4 | // 5 | // Created by August Mueller on 5/6/07. 6 | // Copyright Flying Meat Inc. 2007. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | return NSApplicationMain(argc, (const char **) argv); 14 | } 15 | -------------------------------------------------------------------------------- /derbyboard/toxic/CToxicProgressIndicator.h: -------------------------------------------------------------------------------- 1 | // 2 | // CToxicProgressIndicator.h 3 | // ToxicGadgets 4 | // 5 | // Created by Jonathan Wight on 11/07/2005. 6 | // Copyright 2005 Toxic Software. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface CToxicProgressIndicator : NSProgressIndicator { 12 | BOOL halted; 13 | NSImage *haltedImage; 14 | 15 | float frameWidth; 16 | NSColor *frameColor; 17 | NSColor *wedgeColor; 18 | NSColor *backgroundColor; 19 | 20 | BOOL useSteps; 21 | double stepAngle; 22 | BOOL overFillFirstStep; 23 | } 24 | 25 | - (void)setFromDefaults; 26 | 27 | - (BOOL)isHalted; 28 | - (void)setHalted:(BOOL)inHalted; 29 | 30 | - (NSImage *)haltedImage; 31 | - (void)setHaltedImage:(NSImage *)inHaltedImage; 32 | 33 | - (BOOL)isPieChartStyle; 34 | 35 | - (float)frameWidth; 36 | - (void)setFrameWidth:(float)inFrameWidth; 37 | 38 | - (NSColor *)frameColor; 39 | - (void)setFrameColor:(NSColor *)inFrameColor; 40 | 41 | - (NSColor *)wedgeColor; 42 | - (void)setWedgeColor:(NSColor *)inWedgeColor; 43 | 44 | - (NSColor *)backgroundColor; 45 | - (void)setBackgroundColor:(NSColor *)inBackgroundColor; 46 | 47 | 48 | // The radial step count dictates whether the indicator will "snap to" 49 | // a certain number of steps in the pie, or whether it will show as many 50 | // gradations as possible along the way from empty to full. 51 | // 52 | // For example: 53 | // 54 | // 0 stepCount -> "infinite gradation". 55 | // 1 stepCount -> jumps from empty to full. 56 | // 2 stepCount -> jumps from empty to half-full to full 57 | // 3 - in thirds, 4 in fourths, etc. 58 | // 59 | // NOTE: stepCount is a convenience interface to the 60 | // useSteps and stepAngle attributes. 61 | // 62 | - (int)stepCount; 63 | - (void)setStepCount:(int)radialSteps; 64 | 65 | - (BOOL)useSteps; 66 | - (void)setUseSteps:(BOOL)inUseSteps; 67 | 68 | - (double)stepAngle; 69 | - (void)setStepAngle:(double)inStepAngle; 70 | 71 | - (BOOL)overFillFirstStep; 72 | - (void)setOverFillFirstStep:(BOOL)inOverFillFirstStep; 73 | 74 | - (void)drawHaltedInRect:(NSRect)inFrame; 75 | - (void)drawPieChartInRect:(NSRect)inFrame;; 76 | 77 | @end 78 | -------------------------------------------------------------------------------- /fogbugz-safariextension/README.markdown: -------------------------------------------------------------------------------- 1 | This is a total hack, and if you want to use it, you'll need to modify the extension so it runs on your copy of fogbugz. -------------------------------------------------------------------------------- /fogbugz-safariextension/fbhacks.safariextension/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Author 6 | Gus Mueller 7 | CFBundleDisplayName 8 | Augie's Fogbugz Hacks 9 | CFBundleIdentifier 10 | com.flyingmeat.fbhacks 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleShortVersionString 14 | 1.0 15 | CFBundleVersion 16 | 1 17 | Chrome 18 | 19 | Content 20 | 21 | Scripts 22 | 23 | End 24 | 25 | fbhacks.js 26 | 27 | 28 | 29 | Description 30 | A plugin for modifying FogBugz 7 behavior 31 | ExtensionInfoDictionaryVersion 32 | 1.0 33 | Permissions 34 | 35 | Website Access 36 | 37 | Allowed Domains 38 | 39 | shapeof.com 40 | 41 | Include Secure Pages 42 | 43 | Level 44 | Some 45 | 46 | 47 | Website 48 | http://flyingmeat.com/ 49 | 50 | 51 | -------------------------------------------------------------------------------- /fogbugz-safariextension/fbhacks.safariextension/Settings.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /fogbugz-safariextension/fbhacks.safariextz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/fogbugz-safariextension/fbhacks.safariextz -------------------------------------------------------------------------------- /gbmoviehack/bin/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SRC_HOME=`cd ${0%/*}/..;pwd` 4 | 5 | cd $SRC_HOME 6 | 7 | # remove the old one. 8 | if [ -d ~/Library/InputManagers/GBHack ]; then 9 | rm -rf ~/Library/InputManagers/GBHack 10 | fi 11 | 12 | ./bin/makedist.sh 13 | 14 | mkdir -p ~/Library/InputManagers 15 | 16 | cp -r dist/GBHack ~/Library/InputManagers/ 17 | -------------------------------------------------------------------------------- /gbmoviehack/bin/makedist.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SRC_HOME=`cd ${0%/*}/..;pwd` 4 | BUILD_DIR="/tmp/fo" 5 | cd $SRC_HOME 6 | 7 | xcodebuild -buildstyle Deployment -project gbhack.xcodeproj build OBJROOT=$BUILD_DIR SYMROOT=$BUILD_DIR 8 | 9 | mkdir -p dist/GBHack 10 | 11 | cp -r /tmp/fo/Deployment/GBHack.bundle dist/GBHack/. 12 | cp resources/Info dist/GBHack/. 13 | 14 | cd dist 15 | 16 | tar cvfz GBHack.tgz GBHack 17 | scp GBHack.tgz gus@elvis:~/www/x/. -------------------------------------------------------------------------------- /gbmoviehack/bin/rmsymlinks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SRC_HOME=`cd ${0%/*}/..;pwd` 4 | cd $SRC_HOME 5 | 6 | if [ -d ~/Library/InputManagers/GBHack ]; then 7 | rm -rf ~/Library/InputManagers/GBHack 8 | fi 9 | -------------------------------------------------------------------------------- /gbmoviehack/bin/srcdist.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SRC_HOME=`cd ${0%/*}/..;pwd` 4 | 5 | cd /tmp 6 | 7 | if [ -d gbhack_src ]; then 8 | rm -rf gbhack_src 9 | fi 10 | 11 | 12 | svn export svn+ssh://flycode.googlecode.com/svn/trunk/gbmoviehack/ gbhack_src 13 | 14 | if [ -f gbhack_src.tgz ] ; then 15 | rm gbhack_src.tgz 16 | fi 17 | 18 | tar cvfz gbhack_src.tgz gbhack_src 19 | 20 | scp gbhack_src.tgz gus@elvis:~/www/x/. 21 | -------------------------------------------------------------------------------- /gbmoviehack/bin/symlinks-make.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SRC_HOME=`cd ${0%/*}/..;pwd` 4 | 5 | cd $SRC_HOME 6 | 7 | if [ -d ~/Library/InputManagers/GBHack ]; then 8 | rm -rf ~/Library/InputManagers/GBHack 9 | fi 10 | 11 | #ln -s 12 | 13 | mkdir ~/Library/InputManagers/GBHack 14 | 15 | cd ~/Library/InputManagers/GBHack 16 | 17 | ln -s $SRC_HOME/resources/Info . 18 | 19 | if [ -d ~/builds ]; then 20 | echo ehy! 21 | ln -s ~/builds/Development/GBHack.bundle . 22 | else 23 | ln -s $SRC_HOME/build/GBHack.bundle . 24 | fi -------------------------------------------------------------------------------- /gbmoviehack/resources/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/gbmoviehack/resources/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /gbmoviehack/resources/English.lproj/MovieWindow.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/gbmoviehack/resources/English.lproj/MovieWindow.nib/keyedobjects.nib -------------------------------------------------------------------------------- /gbmoviehack/resources/Info: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | BundleName 7 | GBHack.bundle 8 | LoadBundleOnLaunch 9 | YES 10 | LocalizedNames 11 | 12 | English 13 | GBHack 14 | 15 | NoMenuEntry 16 | YES 17 | 18 | -------------------------------------------------------------------------------- /gbmoviehack/resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | gbhack 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.flyingmeat.gbhack 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1.0 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /gbmoviehack/src/GBMovieWindowController.h: -------------------------------------------------------------------------------- 1 | // 2 | // GBMovieWindowController.h 3 | // flyopts 4 | // 5 | // Created by August Mueller on 11/28/07. 6 | // Copyright 2007 Flying Meat Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface GBMovieWindowController : NSWindowController { 13 | IBOutlet QTMovieView *movieView; 14 | } 15 | 16 | - (QTMovieView *)movieView; 17 | - (void) wakeUpWithMovie:(QTMovie*)movie; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /gbmoviehack/src/GBMovieWindowController.m: -------------------------------------------------------------------------------- 1 | // 2 | // GBMovieWindowController.m 3 | // flyopts 4 | // 5 | // Created by August Mueller on 11/28/07. 6 | // Copyright 2007 Flying Meat Inc. All rights reserved. 7 | // 8 | 9 | #import "GBMovieWindowController.h" 10 | 11 | 12 | @implementation GBMovieWindowController 13 | 14 | - (QTMovieView *)movieView { 15 | return movieView; 16 | } 17 | 18 | - (void) wakeUpWithMovie:(QTMovie*)movie { 19 | 20 | NSValue *movieSize = [[movie movieAttributes] objectForKey:QTMovieCurrentSizeAttribute]; 21 | 22 | NSSize s = [movieSize sizeValue]; 23 | 24 | [[self window] setContentSize:s]; 25 | 26 | [[self window] center]; 27 | 28 | [[self window] makeKeyAndOrderFront:self]; 29 | 30 | [movieView setMovie:movie]; 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /gbmoviehack/src/GBViewAdditions.h: -------------------------------------------------------------------------------- 1 | // 2 | // GBViewAdditions.h 3 | // flyopts 4 | // 5 | // Created by August Mueller on 11/28/07. 6 | // Copyright 2007 Flying Meat Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSView (GBViewAdditions) 13 | 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /gbmoviehack/src/GBViewAdditions.m: -------------------------------------------------------------------------------- 1 | // 2 | // GBViewAdditions.m 3 | // flyopts 4 | // 5 | // Created by August Mueller on 11/28/07. 6 | // Copyright 2007 Flying Meat Inc. All rights reserved. 7 | // 8 | 9 | #import "GBViewAdditions.h" 10 | #import "GBMovieWindowController.h" 11 | #import 12 | 13 | @interface NSObject (GBViewAdditions) 14 | 15 | - (id) movieController; 16 | - (id) QTMovie; 17 | - (BOOL) play; 18 | 19 | @end 20 | 21 | @implementation NSView (GBViewAdditions) 22 | 23 | - (void) gbVideo:(id)sender { 24 | 25 | NSWindow *w = [self window]; 26 | QTMovie *movie = [(id)[[w windowController] movieController] QTMovie]; 27 | 28 | if (!movie) { 29 | NSBeep(); 30 | return; 31 | } 32 | 33 | // Yes, we're just leaking. It's a hack, I don't care. 34 | GBMovieWindowController *wc = [[GBMovieWindowController alloc] initWithWindowNibName:@"MovieWindow"]; 35 | [wc wakeUpWithMovie:movie]; 36 | } 37 | 38 | @end 39 | -------------------------------------------------------------------------------- /gbmoviehack/src/gbhack.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface gbhack : NSObject { 4 | 5 | } 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /gbmoviehack/src/gbhack.m: -------------------------------------------------------------------------------- 1 | #import "gbhack.h" 2 | 3 | @implementation gbhack 4 | 5 | + (void) load { 6 | [self performSelector:@selector(install:) withObject:nil afterDelay:0.0]; 7 | } 8 | 9 | 10 | + (void)install:(id)sender { 11 | 12 | NSMenu *mainMenu = nil; 13 | 14 | NSString *bundleId = [[NSBundle mainBundle] bundleIdentifier]; 15 | 16 | if (!(mainMenu = [NSApp mainMenu])) { 17 | return; 18 | } 19 | 20 | if ([@"com.apple.garageband" isEqualToString:bundleId]) { 21 | debug(@"I'm in... I think."); 22 | NSMenuItem *editMenu = [mainMenu itemWithTitle:@"Edit"]; 23 | NSMenuItem *sep = [NSMenuItem separatorItem]; 24 | [[editMenu submenu] addItem: sep]; 25 | 26 | NSMenuItem *gbCommand = [[editMenu submenu] addItemWithTitle:@"Open Video in Window" action:@selector(gbVideo:) keyEquivalent:@"'"]; 27 | 28 | debug(@"gbCommand: %@", gbCommand); 29 | 30 | [gbCommand setKeyEquivalentModifierMask:NSControlKeyMask | NSCommandKeyMask]; 31 | } 32 | } 33 | 34 | @end 35 | 36 | -------------------------------------------------------------------------------- /gbmoviehack/src/gbhack.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'ODBI' target in the 'ODBI' project. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | 10 | //#ifdef DEBUG 11 | #define debug(...) NSLog(__VA_ARGS__) 12 | //#else 13 | // #define debug(...) 14 | //#endif 15 | 16 | 17 | #define FMRelease(_x) { [_x release]; _x = 0x00; } 18 | 19 | #define and && 20 | #define or || 21 | 22 | #define BREAK_INTO_DEBUGGER() asm { trap } 23 | -------------------------------------------------------------------------------- /gbmoviehack/src/main.m: -------------------------------------------------------------------------------- 1 | /* This is the default source file for new Cocoa bundles. */ 2 | 3 | /* You can either fill in code here or remove this and create or add new files. */ 4 | -------------------------------------------------------------------------------- /jsline/jsline_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'jsline' target in the 'jsline' project. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /khord/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/khord/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /khord/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.flyingmeat.${PRODUCT_NAME:identifier} 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | NSMainNibFile 24 | MainMenu 25 | NSPrincipalClass 26 | NSApplication 27 | 28 | 29 | -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/English.lproj/PTKeyComboPanel.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 670 7 | IBLastKnownRelativeProjectPath 8 | ../../../../fmkit.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | 20 14 | 15 | IBSystem Version 16 | 9E17 17 | targetFramework 18 | IBCocoaFramework 19 | 20 | 21 | -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/English.lproj/PTKeyComboPanel.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/khord/PTHotKeysLib/res/English.lproj/PTKeyComboPanel.nib/keyedobjects.nib -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/French.lproj/PTKeyCodes.plist: -------------------------------------------------------------------------------- 1 | { 2 | 0 = "A"; 3 | 1 = "S"; 4 | 2 = "D"; 5 | 3 = "F"; 6 | 4 = "H"; 7 | 5 = "G"; 8 | 6 = "Z"; 9 | 7 = "X"; 10 | 8 = "C"; 11 | 9 = "V"; 12 | 10 = "$"; 13 | 11 = "B"; 14 | 12 = "Q"; 15 | 13 = "W"; 16 | 14 = "E"; 17 | 15 = "R"; 18 | 16 = "Y"; 19 | 17 = "T"; 20 | 18 = "1"; 21 | 19 = "2"; 22 | 20 = "3"; 23 | 21 = "4"; 24 | 22 = "6"; 25 | 23 = "5"; 26 | 24 = "="; 27 | 25 = "9"; 28 | 26 = "7"; 29 | 27 = "-"; 30 | 28 = "8"; 31 | 29 = "0"; 32 | 30 = "\]"; 33 | 31 = "O"; 34 | 32 = "U"; 35 | 33 = "\["; 36 | 34 = "I"; 37 | 35 = "P"; 38 | 36 = "Return"; 39 | 37 = "L"; 40 | 38 = "J"; 41 | 39 = "\'"; 42 | 40 = "K"; 43 | 41 = ";"; 44 | 42 = "\\"; 45 | 43 = ","; 46 | 44 = "\/"; 47 | 45 = "N"; 48 | 46 = "M"; 49 | 47 = "."; 50 | 48 = "Tab"; 51 | 49 = "Space"; 52 | 50 = "\`"; 53 | 51 = "Delete"; 54 | 53 = "ESC"; 55 | 55 = "Command"; 56 | 56 = "Shift"; 57 | 57 = "Caps Lock"; 58 | 58 = "Option"; 59 | 59 = "Control"; 60 | 65 = "Pad ."; 61 | 67 = "Pad *"; 62 | 69 = "Pad +"; 63 | 71 = "Clear"; 64 | 75 = "Pad /"; 65 | 76 = "Pad Enter"; 66 | 78 = "Pad -"; 67 | 81 = "Pad ="; 68 | 82 = "Pad 0"; 69 | 83 = "Pad 1"; 70 | 84 = "Pad 2"; 71 | 85 = "Pad 3"; 72 | 86 = "Pad 4"; 73 | 87 = "Pad 5"; 74 | 88 = "Pad 6"; 75 | 89 = "Pad 7"; 76 | 91 = "Pad 8"; 77 | 92 = "Pad 9"; 78 | 96 = "F5"; 79 | 97 = "F6"; 80 | 98 = "F7"; 81 | 99 = "F3"; 82 | 100 = "F8"; 83 | 101 = "F9"; 84 | 103 = "F11"; 85 | 105 = "F13"; 86 | 107 = "F14"; 87 | 109 = "F10"; 88 | 111 = "F12"; 89 | 113 = "F15"; 90 | 114 = "Ins"; 91 | 115 = "Home"; 92 | 116 = "Page Up"; 93 | 117 = "Del"; 94 | 118 = "F4"; 95 | 119 = "End"; 96 | 120 = "F2"; 97 | 121 = "Page Down"; 98 | 122 = "F1"; 99 | 123 = "Left Arrow"; 100 | 124 = "Right Arrow"; 101 | 125 = "Down Arrow"; 102 | 126 = "Up Arrow"; 103 | } -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/French.lproj/PTKeyComboPanel.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 4 | {CLASS = PTKeyBroadcaster; LANGUAGE = ObjC; SUPERCLASS = NSButton; }, 5 | { 6 | ACTIONS = {cancel = id; clear = id; ok = id; }; 7 | CLASS = PTKeyComboPanel; 8 | LANGUAGE = ObjC; 9 | OUTLETS = { 10 | mComboField = NSTextField; 11 | mKeyBcaster = PTKeyBroadcaster; 12 | mTitleField = NSTextField; 13 | }; 14 | SUPERCLASS = NSWindowController; 15 | } 16 | ); 17 | IBVersion = 1; 18 | } -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/French.lproj/PTKeyComboPanel.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 109 47 356 240 0 0 1280 1002 7 | IBFramework Version 8 | 291.0 9 | IBGroupedObjects 10 | 11 | 11 12 | 13 | 22 14 | 27 15 | 16 | 17 | IBLastGroupID 18 | 12 19 | IBOpenObjects 20 | 21 | 19 22 | 23 | IBSystem Version 24 | 6L60 25 | 26 | 27 | -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/French.lproj/PTKeyComboPanel.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/khord/PTHotKeysLib/res/French.lproj/PTKeyComboPanel.nib/keyedobjects.nib -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/German.lproj/PTKeyCodes.plist: -------------------------------------------------------------------------------- 1 | { 2 | 0 = "A"; 3 | 1 = "S"; 4 | 2 = "D"; 5 | 3 = "F"; 6 | 4 = "H"; 7 | 5 = "G"; 8 | 6 = "Z"; 9 | 7 = "X"; 10 | 8 = "C"; 11 | 9 = "V"; 12 | 10 = "$"; 13 | 11 = "B"; 14 | 12 = "Q"; 15 | 13 = "W"; 16 | 14 = "E"; 17 | 15 = "R"; 18 | 16 = "Y"; 19 | 17 = "T"; 20 | 18 = "1"; 21 | 19 = "2"; 22 | 20 = "3"; 23 | 21 = "4"; 24 | 22 = "6"; 25 | 23 = "5"; 26 | 24 = "="; 27 | 25 = "9"; 28 | 26 = "7"; 29 | 27 = "-"; 30 | 28 = "8"; 31 | 29 = "0"; 32 | 30 = "\]"; 33 | 31 = "O"; 34 | 32 = "U"; 35 | 33 = "\["; 36 | 34 = "I"; 37 | 35 = "P"; 38 | 36 = "Return"; 39 | 37 = "L"; 40 | 38 = "J"; 41 | 39 = "\'"; 42 | 40 = "K"; 43 | 41 = ";"; 44 | 42 = "\\"; 45 | 43 = ","; 46 | 44 = "\/"; 47 | 45 = "N"; 48 | 46 = "M"; 49 | 47 = "."; 50 | 48 = "Tab"; 51 | 49 = "Space"; 52 | 50 = "\`"; 53 | 51 = "Delete"; 54 | 53 = "ESC"; 55 | 55 = "Command"; 56 | 56 = "Shift"; 57 | 57 = "Caps Lock"; 58 | 58 = "Option"; 59 | 59 = "Control"; 60 | 65 = "Pad ."; 61 | 67 = "Pad *"; 62 | 69 = "Pad +"; 63 | 71 = "Clear"; 64 | 75 = "Pad /"; 65 | 76 = "Pad Enter"; 66 | 78 = "Pad -"; 67 | 81 = "Pad ="; 68 | 82 = "Pad 0"; 69 | 83 = "Pad 1"; 70 | 84 = "Pad 2"; 71 | 85 = "Pad 3"; 72 | 86 = "Pad 4"; 73 | 87 = "Pad 5"; 74 | 88 = "Pad 6"; 75 | 89 = "Pad 7"; 76 | 91 = "Pad 8"; 77 | 92 = "Pad 9"; 78 | 96 = "F5"; 79 | 97 = "F6"; 80 | 98 = "F7"; 81 | 99 = "F3"; 82 | 100 = "F8"; 83 | 101 = "F9"; 84 | 103 = "F11"; 85 | 105 = "F13"; 86 | 107 = "F14"; 87 | 109 = "F10"; 88 | 111 = "F12"; 89 | 113 = "F15"; 90 | 114 = "Ins"; 91 | 115 = "Home"; 92 | 116 = "Page Up"; 93 | 117 = "Del"; 94 | 118 = "F4"; 95 | 119 = "End"; 96 | 120 = "F2"; 97 | 121 = "Page Down"; 98 | 122 = "F1"; 99 | 123 = "Left Arrow"; 100 | 124 = "Right Arrow"; 101 | 125 = "Down Arrow"; 102 | 126 = "Up Arrow"; 103 | } -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/German.lproj/PTKeyComboPanel.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 4 | {CLASS = PTKeyBroadcaster; LANGUAGE = ObjC; SUPERCLASS = NSButton; }, 5 | { 6 | ACTIONS = {cancel = id; clear = id; ok = id; }; 7 | CLASS = PTKeyComboPanel; 8 | LANGUAGE = ObjC; 9 | OUTLETS = { 10 | mComboField = NSTextField; 11 | mKeyBcaster = PTKeyBroadcaster; 12 | mTitleField = NSTextField; 13 | }; 14 | SUPERCLASS = NSWindowController; 15 | } 16 | ); 17 | IBVersion = 1; 18 | } -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/German.lproj/PTKeyComboPanel.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 79 31 356 240 0 0 1024 746 7 | IBFramework Version 8 | 313.0 9 | IBGroupedObjects 10 | 11 | 10 12 | 13 | 22 14 | 27 15 | 16 | 17 | IBLastGroupID 18 | 11 19 | IBOpenObjects 20 | 21 | 19 22 | 23 | IBSystem Version 24 | 6L60 25 | 26 | 27 | -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/German.lproj/PTKeyComboPanel.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/khord/PTHotKeysLib/res/German.lproj/PTKeyComboPanel.nib/objects.nib -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/Japanese.lproj/PTKeyCodes.plist: -------------------------------------------------------------------------------- 1 | { 2 | 0 = "A"; 3 | 1 = "S"; 4 | 2 = "D"; 5 | 3 = "F"; 6 | 4 = "H"; 7 | 5 = "G"; 8 | 6 = "Z"; 9 | 7 = "X"; 10 | 8 = "C"; 11 | 9 = "V"; 12 | 10 = "$"; 13 | 11 = "B"; 14 | 12 = "Q"; 15 | 13 = "W"; 16 | 14 = "E"; 17 | 15 = "R"; 18 | 16 = "Y"; 19 | 17 = "T"; 20 | 18 = "1"; 21 | 19 = "2"; 22 | 20 = "3"; 23 | 21 = "4"; 24 | 22 = "6"; 25 | 23 = "5"; 26 | 24 = "="; 27 | 25 = "9"; 28 | 26 = "7"; 29 | 27 = "-"; 30 | 28 = "8"; 31 | 29 = "0"; 32 | 30 = "\]"; 33 | 31 = "O"; 34 | 32 = "U"; 35 | 33 = "\["; 36 | 34 = "I"; 37 | 35 = "P"; 38 | 36 = "Return"; 39 | 37 = "L"; 40 | 38 = "J"; 41 | 39 = "\'"; 42 | 40 = "K"; 43 | 41 = ";"; 44 | 42 = "\\"; 45 | 43 = ","; 46 | 44 = "\/"; 47 | 45 = "N"; 48 | 46 = "M"; 49 | 47 = "."; 50 | 48 = "Tab"; 51 | 49 = "Space"; 52 | 50 = "\`"; 53 | 51 = "Delete"; 54 | 53 = "ESC"; 55 | 55 = "Command"; 56 | 56 = "Shift"; 57 | 57 = "Caps Lock"; 58 | 58 = "Option"; 59 | 59 = "Control"; 60 | 65 = "Pad ."; 61 | 67 = "Pad *"; 62 | 69 = "Pad +"; 63 | 71 = "Clear"; 64 | 75 = "Pad /"; 65 | 76 = "Pad Enter"; 66 | 78 = "Pad -"; 67 | 81 = "Pad ="; 68 | 82 = "Pad 0"; 69 | 83 = "Pad 1"; 70 | 84 = "Pad 2"; 71 | 85 = "Pad 3"; 72 | 86 = "Pad 4"; 73 | 87 = "Pad 5"; 74 | 88 = "Pad 6"; 75 | 89 = "Pad 7"; 76 | 91 = "Pad 8"; 77 | 92 = "Pad 9"; 78 | 96 = "F5"; 79 | 97 = "F6"; 80 | 98 = "F7"; 81 | 99 = "F3"; 82 | 100 = "F8"; 83 | 101 = "F9"; 84 | 103 = "F11"; 85 | 105 = "F13"; 86 | 107 = "F14"; 87 | 109 = "F10"; 88 | 111 = "F12"; 89 | 113 = "F15"; 90 | 114 = "Ins"; 91 | 115 = "Home"; 92 | 116 = "Page Up"; 93 | 117 = "Del"; 94 | 118 = "F4"; 95 | 119 = "End"; 96 | 120 = "F2"; 97 | 121 = "Page Down"; 98 | 122 = "F1"; 99 | 123 = "Left Arrow"; 100 | 124 = "Right Arrow"; 101 | 125 = "Down Arrow"; 102 | 126 = "Up Arrow"; 103 | } -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/Japanese.lproj/PTKeyComboPanel.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 4 | {CLASS = PTKeyBroadcaster; LANGUAGE = ObjC; SUPERCLASS = NSButton; }, 5 | { 6 | ACTIONS = {cancel = id; clear = id; ok = id; }; 7 | CLASS = PTKeyComboPanel; 8 | LANGUAGE = ObjC; 9 | OUTLETS = { 10 | mComboField = NSTextField; 11 | mKeyBcaster = PTKeyBroadcaster; 12 | mTitleField = NSTextField; 13 | }; 14 | SUPERCLASS = NSWindowController; 15 | } 16 | ); 17 | IBVersion = 1; 18 | } -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/Japanese.lproj/PTKeyComboPanel.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 109 47 356 240 0 0 1280 1002 7 | IBFramework Version 8 | 291.0 9 | IBGroupedObjects 10 | 11 | 10 12 | 13 | 22 14 | 27 15 | 16 | 17 | IBLastGroupID 18 | 11 19 | IBOpenObjects 20 | 21 | 19 22 | 23 | IBSystem Version 24 | 6L60 25 | 26 | 27 | -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/Japanese.lproj/PTKeyComboPanel.nib/objects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/khord/PTHotKeysLib/res/Japanese.lproj/PTKeyComboPanel.nib/objects.nib -------------------------------------------------------------------------------- /khord/PTHotKeysLib/res/PTKeyboardIcon.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/khord/PTHotKeysLib/res/PTKeyboardIcon.tiff -------------------------------------------------------------------------------- /khord/PTHotKeysLib/src/PTHotKey.h: -------------------------------------------------------------------------------- 1 | // 2 | // PTHotKey.h 3 | // Protein 4 | // 5 | // Created by Quentin Carnicelli on Sat Aug 02 2003. 6 | // Copyright (c) 2003 Quentin D. Carnicelli. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "PTKeyCombo.h" 12 | 13 | @interface PTHotKey : NSObject 14 | { 15 | NSString* mIdentifier; 16 | NSString* mName; 17 | PTKeyCombo* mKeyCombo; 18 | id mTarget; 19 | SEL mAction; 20 | } 21 | 22 | - (id)initWithIdentifier: (id)identifier keyCombo: (PTKeyCombo*)combo; 23 | - (id)init; 24 | 25 | - (void)setIdentifier: (id)ident; 26 | - (id)identifier; 27 | 28 | - (void)setName: (NSString*)name; 29 | - (NSString*)name; 30 | 31 | - (void)setKeyCombo: (PTKeyCombo*)combo; 32 | - (PTKeyCombo*)keyCombo; 33 | 34 | - (void)setTarget: (id)target; 35 | - (id)target; 36 | - (void)setAction: (SEL)action; 37 | - (SEL)action; 38 | 39 | - (void)invoke; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /khord/PTHotKeysLib/src/PTHotKey.m: -------------------------------------------------------------------------------- 1 | // 2 | // PTHotKey.m 3 | // Protein 4 | // 5 | // Created by Quentin Carnicelli on Sat Aug 02 2003. 6 | // Copyright (c) 2003 Quentin D. Carnicelli. All rights reserved. 7 | // 8 | 9 | #import "PTHotKey.h" 10 | 11 | #import "PTHotKeyCenter.h" 12 | #import "PTKeyCombo.h" 13 | 14 | @implementation PTHotKey 15 | 16 | - (id)init 17 | { 18 | return [self initWithIdentifier: nil keyCombo: nil]; 19 | } 20 | 21 | 22 | - (id)initWithIdentifier: (id)identifier keyCombo: (PTKeyCombo*)combo 23 | { 24 | self = [super init]; 25 | 26 | if( self ) 27 | { 28 | [self setIdentifier: identifier]; 29 | [self setKeyCombo: combo]; 30 | } 31 | 32 | return self; 33 | } 34 | 35 | - (void)dealloc 36 | { 37 | [mIdentifier release]; 38 | [mName release]; 39 | [mKeyCombo release]; 40 | 41 | [super dealloc]; 42 | } 43 | 44 | - (NSString*)description 45 | { 46 | return [NSString stringWithFormat: @"<%@: %@, %@>", NSStringFromClass( [self class] ), [self identifier], [self keyCombo]]; 47 | } 48 | 49 | #pragma mark - 50 | 51 | - (void)setIdentifier: (id)ident 52 | { 53 | [ident retain]; 54 | [mIdentifier release]; 55 | mIdentifier = ident; 56 | } 57 | 58 | - (id)identifier 59 | { 60 | return mIdentifier; 61 | } 62 | 63 | - (void)setKeyCombo: (PTKeyCombo*)combo 64 | { 65 | if( combo == nil ) 66 | combo = [PTKeyCombo clearKeyCombo]; 67 | 68 | [combo retain]; 69 | [mKeyCombo release]; 70 | mKeyCombo = combo; 71 | } 72 | 73 | - (PTKeyCombo*)keyCombo 74 | { 75 | return mKeyCombo; 76 | } 77 | 78 | - (void)setName: (NSString*)name 79 | { 80 | [name retain]; 81 | [mName release]; 82 | mName = name; 83 | } 84 | 85 | - (NSString*)name 86 | { 87 | return mName; 88 | } 89 | 90 | - (void)setTarget: (id)target 91 | { 92 | mTarget = target; 93 | } 94 | 95 | - (id)target 96 | { 97 | return mTarget; 98 | } 99 | 100 | - (void)setAction: (SEL)action 101 | { 102 | mAction = action; 103 | } 104 | 105 | - (SEL)action 106 | { 107 | return mAction; 108 | } 109 | 110 | - (void)invoke 111 | { 112 | [mTarget performSelector: mAction withObject: self]; 113 | } 114 | 115 | @end 116 | -------------------------------------------------------------------------------- /khord/PTHotKeysLib/src/PTHotKeyCenter.h: -------------------------------------------------------------------------------- 1 | // 2 | // PTHotKeyCenter.h 3 | // Protein 4 | // 5 | // Created by Quentin Carnicelli on Sat Aug 02 2003. 6 | // Copyright (c) 2003 Quentin D. Carnicelli. All rights reserved. 7 | // 8 | // Contributers: 9 | // Quentin D. Carnicelli 10 | // Finlay Dobbie 11 | // Vincent Pottier 12 | 13 | #import 14 | 15 | @class PTHotKey; 16 | 17 | @interface PTHotKeyCenter : NSObject 18 | { 19 | NSMutableDictionary* mHotKeys; //Keys are NSValue of EventHotKeyRef 20 | BOOL mEventHandlerInstalled; 21 | } 22 | 23 | + (PTHotKeyCenter*)sharedCenter; 24 | 25 | - (BOOL)registerHotKey: (PTHotKey*)hotKey; 26 | - (void)unregisterHotKey: (PTHotKey*)hotKey; 27 | 28 | - (NSArray*)allHotKeys; 29 | - (PTHotKey*)hotKeyWithIdentifier: (id)ident; 30 | 31 | - (void)sendEvent: (NSEvent*)event; 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /khord/PTHotKeysLib/src/PTKeyBroadcaster.h: -------------------------------------------------------------------------------- 1 | // 2 | // PTKeyBroadcaster.h 3 | // Protein 4 | // 5 | // Created by Quentin Carnicelli on Sun Aug 03 2003. 6 | // Copyright (c) 2003 Quentin D. Carnicelli. All rights reserved. 7 | // 8 | 9 | #import 10 | #if __PROTEIN__ 11 | #import "ProteinDefines.h" 12 | #else 13 | #define PROTEIN_EXPORT __private_extern__ 14 | #endif 15 | 16 | @interface PTKeyBroadcaster : NSButton 17 | { 18 | } 19 | 20 | + (long)cocoaModifiersAsCarbonModifiers: (long)cocoaModifiers; 21 | 22 | @end 23 | 24 | PROTEIN_EXPORT NSString* PTKeyBroadcasterKeyEvent; //keys: keyCombo as PTKeyCombo 25 | -------------------------------------------------------------------------------- /khord/PTHotKeysLib/src/PTKeyBroadcaster.m: -------------------------------------------------------------------------------- 1 | // 2 | // PTKeyBroadcaster.m 3 | // Protein 4 | // 5 | // Created by Quentin Carnicelli on Sun Aug 03 2003. 6 | // Copyright (c) 2003 Quentin D. Carnicelli. All rights reserved. 7 | // 8 | 9 | #import "PTKeyBroadcaster.h" 10 | #import "PTKeyCombo.h" 11 | #import 12 | 13 | NSString* PTKeyBroadcasterKeyEvent = @"PTKeyBroadcasterKeyEvent"; 14 | 15 | @implementation PTKeyBroadcaster 16 | 17 | - (void)_bcastKeyCode: (short)keyCode modifiers: (long)modifiers 18 | { 19 | PTKeyCombo* keyCombo = [PTKeyCombo keyComboWithKeyCode: keyCode modifiers: modifiers]; 20 | NSDictionary* userInfo = [NSDictionary dictionaryWithObject: keyCombo forKey:@"keyCombo"]; 21 | 22 | [[NSNotificationCenter defaultCenter] 23 | postNotificationName: PTKeyBroadcasterKeyEvent 24 | object: self 25 | userInfo: userInfo]; 26 | } 27 | 28 | - (void)_bcastEvent: (NSEvent*)event 29 | { 30 | short keyCode; 31 | long modifiers; 32 | 33 | keyCode = [event keyCode]; 34 | modifiers = [event modifierFlags]; 35 | modifiers = [[self class] cocoaModifiersAsCarbonModifiers: modifiers]; 36 | 37 | [self _bcastKeyCode: keyCode modifiers: modifiers]; 38 | } 39 | 40 | - (void)keyDown: (NSEvent*)event 41 | { 42 | [self _bcastEvent: event]; 43 | } 44 | 45 | - (BOOL)performKeyEquivalent: (NSEvent*)event 46 | { 47 | [self _bcastEvent: event]; 48 | return YES; 49 | } 50 | 51 | + (long)cocoaModifiersAsCarbonModifiers: (long)cocoaModifiers 52 | { 53 | static long cocoaToCarbon[6][2] = 54 | { 55 | { NSCommandKeyMask, cmdKey}, 56 | { NSAlternateKeyMask, optionKey}, 57 | { NSControlKeyMask, controlKey}, 58 | { NSShiftKeyMask, shiftKey}, 59 | { NSFunctionKeyMask, rightControlKey}, 60 | //{ NSAlphaShiftKeyMask, alphaLock }, //Ignore this? 61 | }; 62 | 63 | long carbonModifiers = 0; 64 | int i; 65 | 66 | for( i = 0 ; i < 6; i++ ) 67 | if( cocoaModifiers & cocoaToCarbon[i][0] ) 68 | carbonModifiers += cocoaToCarbon[i][1]; 69 | 70 | return carbonModifiers; 71 | } 72 | 73 | 74 | @end 75 | -------------------------------------------------------------------------------- /khord/PTHotKeysLib/src/PTKeyCodeTranslator.h: -------------------------------------------------------------------------------- 1 | // 2 | // PTKeyCodeTranslator.h 3 | // Chercher 4 | // 5 | // Created by Finlay Dobbie on Sat Oct 11 2003. 6 | // Copyright (c) 2003 Cliché Software. All rights reserved. 7 | // 8 | 9 | #import 10 | #include 11 | #include 12 | 13 | @interface PTKeyCodeTranslator : NSObject 14 | { 15 | TISInputSourceRef keyboardLayout; 16 | const UCKeyboardLayout *uchrData; 17 | 18 | UInt32 keyTranslateState; 19 | UInt32 deadKeyState; 20 | } 21 | 22 | + (id)currentTranslator; 23 | 24 | - (id)initWithKeyboardLayout:(TISInputSourceRef)aLayout; 25 | - (NSString *)translateKeyCode:(short)keyCode; 26 | 27 | - (TISInputSourceRef)keyboardLayout; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /khord/PTHotKeysLib/src/PTKeyCodeTranslator.m: -------------------------------------------------------------------------------- 1 | // 2 | // PTKeyCodeTranslator.m 3 | // Chercher 4 | // 5 | // Created by Finlay Dobbie on Sat Oct 11 2003. 6 | // Copyright (c) 2003 Cliché Software. All rights reserved. 7 | // 8 | 9 | #import "PTKeyCodeTranslator.h" 10 | 11 | 12 | @implementation PTKeyCodeTranslator 13 | 14 | + (id)currentTranslator 15 | { 16 | static PTKeyCodeTranslator *current = nil; 17 | TISInputSourceRef currentLayout = TISCopyCurrentKeyboardLayoutInputSource(); 18 | 19 | if (current == nil) { 20 | current = [[PTKeyCodeTranslator alloc] initWithKeyboardLayout:currentLayout]; 21 | } else if ([current keyboardLayout] != currentLayout) { 22 | [current release]; 23 | current = [[PTKeyCodeTranslator alloc] initWithKeyboardLayout:currentLayout]; 24 | } 25 | return current; 26 | } 27 | 28 | - (id)initWithKeyboardLayout:(TISInputSourceRef)aLayout 29 | { 30 | if ((self = [super init]) != nil) { 31 | 32 | keyboardLayout = aLayout; 33 | CFDataRef uchr = TISGetInputSourceProperty( keyboardLayout , kTISPropertyUnicodeKeyLayoutData ); 34 | uchrData = ( const UCKeyboardLayout* )CFDataGetBytePtr(uchr); 35 | 36 | } 37 | 38 | return self; 39 | } 40 | 41 | - (NSString *)translateKeyCode:(short)keyCode { 42 | UniCharCount maxStringLength = 4, actualStringLength; 43 | UniChar unicodeString[4]; 44 | OSStatus err; 45 | err = UCKeyTranslate( uchrData, keyCode, kUCKeyActionDisplay, 0, LMGetKbdType(), kUCKeyTranslateNoDeadKeysBit, &deadKeyState, maxStringLength, &actualStringLength, unicodeString ); 46 | return [NSString stringWithCharacters:unicodeString length:1]; 47 | } 48 | 49 | - (TISInputSourceRef)keyboardLayout { 50 | return keyboardLayout; 51 | } 52 | 53 | - (NSString *)description { 54 | NSString *kind = @"uchr"; 55 | 56 | NSString *layoutName = TISGetInputSourceProperty( keyboardLayout, kTISPropertyLocalizedName ); 57 | return [NSString stringWithFormat:@"PTKeyCodeTranslator layout=%@ (%@)", layoutName, kind]; 58 | } 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /khord/PTHotKeysLib/src/PTKeyCombo.h: -------------------------------------------------------------------------------- 1 | // 2 | // PTKeyCombo.h 3 | // Protein 4 | // 5 | // Created by Quentin Carnicelli on Sat Aug 02 2003. 6 | // Copyright (c) 2003 Quentin D. Carnicelli. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #if __PROTEIN__ 12 | #else 13 | #define _PTLocalizedString NSLocalizedString 14 | #endif 15 | 16 | @interface PTKeyCombo : NSObject 17 | { 18 | int mKeyCode; 19 | int mModifiers; 20 | } 21 | 22 | + (id)clearKeyCombo; 23 | + (id)keyComboWithKeyCode: (int)keyCode modifiers: (int)modifiers; 24 | - (id)initWithKeyCode: (int)keyCode modifiers: (int)modifiers; 25 | 26 | - (id)initWithPlistRepresentation: (id)plist; 27 | - (id)plistRepresentation; 28 | 29 | - (BOOL)isEqual: (PTKeyCombo*)combo; 30 | 31 | - (int)keyCode; 32 | - (int)modifiers; 33 | 34 | - (BOOL)isClearCombo; 35 | - (BOOL)isValidHotKeyCombo; 36 | 37 | @end 38 | 39 | @interface PTKeyCombo (UserDisplayAdditions) 40 | 41 | - (NSString*)description; 42 | - (NSString*)keyCodeString; 43 | - (NSUInteger)modifierMask; 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /khord/PTHotKeysLib/src/PTKeyComboPanel.h: -------------------------------------------------------------------------------- 1 | // 2 | // PTKeyComboPanel.h 3 | // Protein 4 | // 5 | // Created by Quentin Carnicelli on Sun Aug 03 2003. 6 | // Copyright (c) 2003 Quentin D. Carnicelli. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class PTKeyBroadcaster; 12 | @class PTKeyCombo; 13 | @class PTHotKey; 14 | 15 | @interface PTKeyComboPanel : NSWindowController 16 | { 17 | IBOutlet NSTextField* mTitleField; 18 | IBOutlet NSTextField* mComboField; 19 | IBOutlet PTKeyBroadcaster* mKeyBcaster; 20 | 21 | NSString* mTitleFormat; 22 | NSString* mKeyName; 23 | PTKeyCombo* mKeyCombo; 24 | 25 | } 26 | 27 | + (PTKeyComboPanel*)sharedPanel; 28 | 29 | - (int)runModal; 30 | - (void)runModalForHotKey: (PTHotKey*)hotKey; 31 | 32 | - (void)runSheeetForModalWindow: (NSWindow*)wind target: (id)obj; 33 | //Calls hotKeySheetDidEndWithReturnCode: (NSNumber*) on target object 34 | 35 | - (void)setKeyCombo: (PTKeyCombo*)combo; 36 | - (PTKeyCombo*)keyCombo; 37 | 38 | - (void)setKeyBindingName: (NSString*)name; 39 | - (NSString*)keyBindingName; 40 | 41 | - (IBAction)ok: (id)sender; 42 | - (IBAction)cancel: (id)sender; 43 | - (IBAction)clear: (id)sender; 44 | @end 45 | -------------------------------------------------------------------------------- /khord/khord_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'khord' target in the 'khord' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | 9 | 10 | 11 | #ifdef DEBUG 12 | #define debug(...) NSLog(__VA_ARGS__) 13 | #else 14 | #define debug(...) 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /khord/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // khord 4 | // 5 | // Created by August Mueller on 8/3/08. 6 | // Copyright Flying Meat Inc 2008. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | return NSApplicationMain(argc, (const char **) argv); 14 | } 15 | -------------------------------------------------------------------------------- /khord/src/KHAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // KHAppDelegate.h 3 | // khord 4 | // 5 | // Created by August Mueller on 8/3/08. 6 | // Copyright 2008 Flying Meat Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "PTKeyComboPanel.h" 11 | #import "PTHotKey.h" 12 | #import "PTHotKeyCenter.h" 13 | #import "KHKeyCatcherView.h" 14 | 15 | @interface KHAppDelegate : NSObject { 16 | IBOutlet NSWindow *hotkeyWindow; 17 | IBOutlet NSWindow *popupWindow; 18 | IBOutlet NSTextField *hotkeyField; 19 | 20 | IBOutlet KHKeyCatcherView *catcherView; 21 | 22 | PTHotKey *_hotKey; 23 | } 24 | 25 | @property (retain) PTHotKey *hotKey; 26 | 27 | - (void) setHotkey:(id)sender; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /khord/src/KHKeyCatcherView.h: -------------------------------------------------------------------------------- 1 | // 2 | // KHKeyCatcherView.h 3 | // khord 4 | // 5 | // Created by August Mueller on 8/3/08. 6 | // Copyright 2008 Flying Meat Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface KHKeyCatcherView : NSView { 13 | NSMutableDictionary *_keysPressed; 14 | IBOutlet NSTextView *theTextView; 15 | } 16 | 17 | @property (retain) NSMutableDictionary *keysPressed; 18 | 19 | - (void) clear; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /luacore/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/luacore/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /luacore/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleName 10 | ${PRODUCT_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | com.yourcompany.yourcocoaframework 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /luacore/Lua/lapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lapi.h,v 2.2 2005/04/25 19:24:10 roberto Exp $ 3 | ** Auxiliary functions from Lua API 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lapi_h 8 | #define lapi_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | LUAI_FUNC void luaA_pushobject (lua_State *L, const TValue *o); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /luacore/Lua/ldebug.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ldebug.h,v 2.3 2005/04/25 19:24:10 roberto Exp $ 3 | ** Auxiliary functions from Debug Interface module 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ldebug_h 8 | #define ldebug_h 9 | 10 | 11 | #include "lstate.h" 12 | 13 | 14 | #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) 15 | 16 | #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) 17 | 18 | #define resethookcount(L) (L->hookcount = L->basehookcount) 19 | 20 | 21 | LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o, 22 | const char *opname); 23 | LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2); 24 | LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1, 25 | const TValue *p2); 26 | LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1, 27 | const TValue *p2); 28 | LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...); 29 | LUAI_FUNC void luaG_errormsg (lua_State *L); 30 | LUAI_FUNC int luaG_checkcode (const Proto *pt); 31 | LUAI_FUNC int luaG_checkopenop (Instruction i); 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /luacore/Lua/ldo.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ldo.h,v 2.7 2005/08/24 16:15:49 roberto Exp $ 3 | ** Stack and Call structure of Lua 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ldo_h 8 | #define ldo_h 9 | 10 | 11 | #include "lobject.h" 12 | #include "lstate.h" 13 | #include "lzio.h" 14 | 15 | 16 | #define luaD_checkstack(L,n) \ 17 | if ((char *)L->stack_last - (char *)L->top <= (n)*(int)sizeof(TValue)) \ 18 | luaD_growstack(L, n); \ 19 | else condhardstacktests(luaD_reallocstack(L, L->stacksize - EXTRA_STACK - 1)); 20 | 21 | 22 | #define incr_top(L) {luaD_checkstack(L,1); L->top++;} 23 | 24 | #define savestack(L,p) ((char *)(p) - (char *)L->stack) 25 | #define restorestack(L,n) ((TValue *)((char *)L->stack + (n))) 26 | 27 | #define saveci(L,p) ((char *)(p) - (char *)L->base_ci) 28 | #define restoreci(L,n) ((CallInfo *)((char *)L->base_ci + (n))) 29 | 30 | 31 | /* results from luaD_precall */ 32 | #define PCRLUA 0 /* initiated a call to a Lua function */ 33 | #define PCRC 1 /* did a call to a C function */ 34 | #define PCRYIELD 2 /* C funtion yielded */ 35 | 36 | 37 | /* type of protected functions, to be ran by `runprotected' */ 38 | typedef void (*Pfunc) (lua_State *L, void *ud); 39 | 40 | LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name); 41 | LUAI_FUNC void luaD_callhook (lua_State *L, int event, int line); 42 | LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults); 43 | LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults); 44 | LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u, 45 | ptrdiff_t oldtop, ptrdiff_t ef); 46 | LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult); 47 | LUAI_FUNC void luaD_reallocCI (lua_State *L, int newsize); 48 | LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize); 49 | LUAI_FUNC void luaD_growstack (lua_State *L, int n); 50 | 51 | LUAI_FUNC void luaD_throw (lua_State *L, int errcode); 52 | LUAI_FUNC int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud); 53 | 54 | LUAI_FUNC void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop); 55 | 56 | #endif 57 | 58 | -------------------------------------------------------------------------------- /luacore/Lua/lfunc.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lfunc.h,v 2.4 2005/04/25 19:24:10 roberto Exp $ 3 | ** Auxiliary functions to manipulate prototypes and closures 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lfunc_h 8 | #define lfunc_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | #define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ 15 | cast(int, sizeof(TValue)*((n)-1))) 16 | 17 | #define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ 18 | cast(int, sizeof(TValue *)*((n)-1))) 19 | 20 | 21 | LUAI_FUNC Proto *luaF_newproto (lua_State *L); 22 | LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e); 23 | LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems, Table *e); 24 | LUAI_FUNC UpVal *luaF_newupval (lua_State *L); 25 | LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level); 26 | LUAI_FUNC void luaF_close (lua_State *L, StkId level); 27 | LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f); 28 | LUAI_FUNC void luaF_freeclosure (lua_State *L, Closure *c); 29 | LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv); 30 | LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number, 31 | int pc); 32 | 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /luacore/Lua/linit.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: linit.c,v 1.14 2005/12/29 15:32:11 roberto Exp $ 3 | ** Initialization of libraries for lua.c 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #define linit_c 9 | #define LUA_LIB 10 | 11 | #include "lua.h" 12 | 13 | #include "lualib.h" 14 | #include "lauxlib.h" 15 | 16 | 17 | static const luaL_Reg lualibs[] = { 18 | {"", luaopen_base}, 19 | {LUA_LOADLIBNAME, luaopen_package}, 20 | {LUA_TABLIBNAME, luaopen_table}, 21 | {LUA_IOLIBNAME, luaopen_io}, 22 | {LUA_OSLIBNAME, luaopen_os}, 23 | {LUA_STRLIBNAME, luaopen_string}, 24 | {LUA_MATHLIBNAME, luaopen_math}, 25 | {LUA_DBLIBNAME, luaopen_debug}, 26 | {NULL, NULL} 27 | }; 28 | 29 | 30 | LUALIB_API void luaL_openlibs (lua_State *L) { 31 | const luaL_Reg *lib = lualibs; 32 | for (; lib->func; lib++) { 33 | lua_pushcfunction(L, lib->func); 34 | lua_pushstring(L, lib->name); 35 | lua_call(L, 1, 0); 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /luacore/Lua/lmem.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lmem.h,v 1.31 2005/04/25 19:24:10 roberto Exp $ 3 | ** Interface to Memory Manager 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lmem_h 8 | #define lmem_h 9 | 10 | 11 | #include 12 | 13 | #include "llimits.h" 14 | #include "lua.h" 15 | 16 | #define MEMERRMSG "not enough memory" 17 | 18 | 19 | #define luaM_reallocv(L,b,on,n,e) \ 20 | ((cast(size_t, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \ 21 | luaM_realloc_(L, (b), (on)*(e), (n)*(e)) : \ 22 | luaM_toobig(L)) 23 | 24 | #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) 25 | #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) 26 | #define luaM_freearray(L, b, n, t) luaM_reallocv(L, (b), n, 0, sizeof(t)) 27 | 28 | #define luaM_malloc(L,t) luaM_realloc_(L, NULL, 0, (t)) 29 | #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) 30 | #define luaM_newvector(L,n,t) \ 31 | cast(t *, luaM_reallocv(L, NULL, 0, n, sizeof(t))) 32 | 33 | #define luaM_growvector(L,v,nelems,size,t,limit,e) \ 34 | if ((nelems)+1 > (size)) \ 35 | ((v)=cast(t *, luaM_growaux_(L,v,&(size),sizeof(t),limit,e))) 36 | 37 | #define luaM_reallocvector(L, v,oldn,n,t) \ 38 | ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t)))) 39 | 40 | 41 | LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, 42 | size_t size); 43 | LUAI_FUNC void *luaM_toobig (lua_State *L); 44 | LUAI_FUNC void *luaM_growaux_ (lua_State *L, void *block, int *size, 45 | size_t size_elem, int limit, 46 | const char *errormsg); 47 | 48 | #endif 49 | 50 | -------------------------------------------------------------------------------- /luacore/Lua/lstring.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lstring.h,v 1.43 2005/04/25 19:24:10 roberto Exp $ 3 | ** String table (keep all strings handled by Lua) 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lstring_h 8 | #define lstring_h 9 | 10 | 11 | #include "lgc.h" 12 | #include "lobject.h" 13 | #include "lstate.h" 14 | 15 | 16 | #define sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char)) 17 | 18 | #define sizeudata(u) (sizeof(union Udata)+(u)->len) 19 | 20 | #define luaS_new(L, s) (luaS_newlstr(L, s, strlen(s))) 21 | #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ 22 | (sizeof(s)/sizeof(char))-1)) 23 | 24 | #define luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT) 25 | 26 | LUAI_FUNC void luaS_resize (lua_State *L, int newsize); 27 | LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e); 28 | LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); 29 | 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /luacore/Lua/ltable.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ltable.h,v 2.10 2006/01/10 13:13:06 roberto Exp $ 3 | ** Lua tables (hash) 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ltable_h 8 | #define ltable_h 9 | 10 | #include "lobject.h" 11 | 12 | 13 | #define gnode(t,i) (&(t)->node[i]) 14 | #define gkey(n) (&(n)->i_key.nk) 15 | #define gval(n) (&(n)->i_val) 16 | #define gnext(n) ((n)->i_key.nk.next) 17 | 18 | #define key2tval(n) (&(n)->i_key.tvk) 19 | 20 | 21 | LUAI_FUNC const TValue *luaH_getnum (Table *t, int key); 22 | LUAI_FUNC TValue *luaH_setnum (lua_State *L, Table *t, int key); 23 | LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 24 | LUAI_FUNC TValue *luaH_setstr (lua_State *L, Table *t, TString *key); 25 | LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 26 | LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 27 | LUAI_FUNC Table *luaH_new (lua_State *L, int narray, int lnhash); 28 | LUAI_FUNC void luaH_resizearray (lua_State *L, Table *t, int nasize); 29 | LUAI_FUNC void luaH_free (lua_State *L, Table *t); 30 | LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key); 31 | LUAI_FUNC int luaH_getn (Table *t); 32 | 33 | 34 | #if defined(LUA_DEBUG) 35 | LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key); 36 | LUAI_FUNC int luaH_isdummy (Node *n); 37 | #endif 38 | 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /luacore/Lua/ltm.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ltm.c,v 2.8 2006/01/10 12:50:00 roberto Exp $ 3 | ** Tag methods 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #include 9 | 10 | #define ltm_c 11 | #define LUA_CORE 12 | 13 | #include "lua.h" 14 | 15 | #include "lobject.h" 16 | #include "lstate.h" 17 | #include "lstring.h" 18 | #include "ltable.h" 19 | #include "ltm.h" 20 | 21 | 22 | 23 | const char *const luaT_typenames[] = { 24 | "nil", "boolean", "userdata", "number", 25 | "string", "table", "function", "userdata", "thread", 26 | "proto", "upval" 27 | }; 28 | 29 | 30 | void luaT_init (lua_State *L) { 31 | static const char *const luaT_eventname[] = { /* ORDER TM */ 32 | "__index", "__newindex", 33 | "__gc", "__mode", "__eq", 34 | "__add", "__sub", "__mul", "__div", "__mod", 35 | "__pow", "__unm", "__len", "__lt", "__le", 36 | "__concat", "__call" 37 | }; 38 | int i; 39 | for (i=0; itmname[i] = luaS_new(L, luaT_eventname[i]); 41 | luaS_fix(G(L)->tmname[i]); /* never collect these names */ 42 | } 43 | } 44 | 45 | 46 | /* 47 | ** function to be used with macro "fasttm": optimized for absence of 48 | ** tag methods 49 | */ 50 | const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { 51 | const TValue *tm = luaH_getstr(events, ename); 52 | lua_assert(event <= TM_EQ); 53 | if (ttisnil(tm)) { /* no tag method? */ 54 | events->flags |= cast_byte(1u<metatable; 66 | break; 67 | case LUA_TUSERDATA: 68 | mt = uvalue(o)->metatable; 69 | break; 70 | default: 71 | mt = G(L)->mt[ttype(o)]; 72 | } 73 | return (mt ? luaH_getstr(mt, G(L)->tmname[event]) : luaO_nilobject); 74 | } 75 | 76 | -------------------------------------------------------------------------------- /luacore/Lua/ltm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: ltm.h,v 2.6 2005/06/06 13:30:25 roberto Exp $ 3 | ** Tag methods 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef ltm_h 8 | #define ltm_h 9 | 10 | 11 | #include "lobject.h" 12 | 13 | 14 | /* 15 | * WARNING: if you change the order of this enumeration, 16 | * grep "ORDER TM" 17 | */ 18 | typedef enum { 19 | TM_INDEX, 20 | TM_NEWINDEX, 21 | TM_GC, 22 | TM_MODE, 23 | TM_EQ, /* last tag method with `fast' access */ 24 | TM_ADD, 25 | TM_SUB, 26 | TM_MUL, 27 | TM_DIV, 28 | TM_MOD, 29 | TM_POW, 30 | TM_UNM, 31 | TM_LEN, 32 | TM_LT, 33 | TM_LE, 34 | TM_CONCAT, 35 | TM_CALL, 36 | TM_N /* number of elements in the enum */ 37 | } TMS; 38 | 39 | 40 | 41 | #define gfasttm(g,et,e) ((et) == NULL ? NULL : \ 42 | ((et)->flags & (1u<<(e))) ? NULL : luaT_gettm(et, e, (g)->tmname[e])) 43 | 44 | #define fasttm(l,et,e) gfasttm(G(l), et, e) 45 | 46 | LUAI_DATA const char *const luaT_typenames[]; 47 | 48 | 49 | LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); 50 | LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, 51 | TMS event); 52 | LUAI_FUNC void luaT_init (lua_State *L); 53 | 54 | #endif 55 | -------------------------------------------------------------------------------- /luacore/Lua/lualib.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lualib.h,v 1.36 2005/12/27 17:12:00 roberto Exp $ 3 | ** Lua standard libraries 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #ifndef lualib_h 9 | #define lualib_h 10 | 11 | #include "lua.h" 12 | 13 | 14 | /* Key to file-handle type */ 15 | #define LUA_FILEHANDLE "FILE*" 16 | 17 | 18 | #define LUA_COLIBNAME "coroutine" 19 | LUALIB_API int (luaopen_base) (lua_State *L); 20 | 21 | #define LUA_TABLIBNAME "table" 22 | LUALIB_API int (luaopen_table) (lua_State *L); 23 | 24 | #define LUA_IOLIBNAME "io" 25 | LUALIB_API int (luaopen_io) (lua_State *L); 26 | 27 | #define LUA_OSLIBNAME "os" 28 | LUALIB_API int (luaopen_os) (lua_State *L); 29 | 30 | #define LUA_STRLIBNAME "string" 31 | LUALIB_API int (luaopen_string) (lua_State *L); 32 | 33 | #define LUA_MATHLIBNAME "math" 34 | LUALIB_API int (luaopen_math) (lua_State *L); 35 | 36 | #define LUA_DBLIBNAME "debug" 37 | LUALIB_API int (luaopen_debug) (lua_State *L); 38 | 39 | #define LUA_LOADLIBNAME "package" 40 | LUALIB_API int (luaopen_package) (lua_State *L); 41 | 42 | 43 | /* open all previous libraries */ 44 | LUALIB_API void (luaL_openlibs) (lua_State *L); 45 | 46 | 47 | 48 | #ifndef lua_assert 49 | #define lua_assert(x) ((void)0) 50 | #endif 51 | 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /luacore/Lua/lundump.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lundump.h,v 1.40 2005/11/11 14:03:13 lhf Exp $ 3 | ** load precompiled Lua chunks 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lundump_h 8 | #define lundump_h 9 | 10 | #include "lobject.h" 11 | #include "lzio.h" 12 | 13 | /* load one chunk; from lundump.c */ 14 | LUAI_FUNC Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name); 15 | 16 | /* make header; from lundump.c */ 17 | LUAI_FUNC void luaU_header (char* h); 18 | 19 | /* dump one chunk; from ldump.c */ 20 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip); 21 | 22 | #ifdef luac_c 23 | /* print one chunk; from print.c */ 24 | LUAI_FUNC void luaU_print (const Proto* f, int full); 25 | #endif 26 | 27 | /* for header of binary files -- this is Lua 5.1 */ 28 | #define LUAC_VERSION 0x51 29 | 30 | /* for header of binary files -- this is the official format */ 31 | #define LUAC_FORMAT 0 32 | 33 | /* size of header of binary files */ 34 | #define LUAC_HEADERSIZE 12 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /luacore/Lua/lvm.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lvm.h,v 2.5 2005/08/22 18:54:49 roberto Exp $ 3 | ** Lua virtual machine 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | #ifndef lvm_h 8 | #define lvm_h 9 | 10 | 11 | #include "ldo.h" 12 | #include "lobject.h" 13 | #include "ltm.h" 14 | 15 | 16 | #define tostring(L,o) ((ttype(o) == LUA_TSTRING) || (luaV_tostring(L, o))) 17 | 18 | #define tonumber(o,n) (ttype(o) == LUA_TNUMBER || \ 19 | (((o) = luaV_tonumber(o,n)) != NULL)) 20 | 21 | #define equalobj(L,o1,o2) \ 22 | (ttype(o1) == ttype(o2) && luaV_equalval(L, o1, o2)) 23 | 24 | 25 | LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); 26 | LUAI_FUNC int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2); 27 | LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); 28 | LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj); 29 | LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key, 30 | StkId val); 31 | LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key, 32 | StkId val); 33 | LUAI_FUNC void luaV_execute (lua_State *L, int nexeccalls); 34 | LUAI_FUNC void luaV_concat (lua_State *L, int total, int last); 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /luacore/Lua/lzio.c: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lzio.c,v 1.31 2005/06/03 20:15:29 roberto Exp $ 3 | ** a generic input stream interface 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #include 9 | 10 | #define lzio_c 11 | #define LUA_CORE 12 | 13 | #include "lua.h" 14 | 15 | #include "llimits.h" 16 | #include "lmem.h" 17 | #include "lstate.h" 18 | #include "lzio.h" 19 | 20 | 21 | int luaZ_fill (ZIO *z) { 22 | size_t size; 23 | lua_State *L = z->L; 24 | const char *buff; 25 | lua_unlock(L); 26 | buff = z->reader(L, z->data, &size); 27 | lua_lock(L); 28 | if (buff == NULL || size == 0) return EOZ; 29 | z->n = size - 1; 30 | z->p = buff; 31 | return char2int(*(z->p++)); 32 | } 33 | 34 | 35 | int luaZ_lookahead (ZIO *z) { 36 | if (z->n == 0) { 37 | if (luaZ_fill(z) == EOZ) 38 | return EOZ; 39 | else { 40 | z->n++; /* luaZ_fill removed first byte; put back it */ 41 | z->p--; 42 | } 43 | } 44 | return char2int(*z->p); 45 | } 46 | 47 | 48 | void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, void *data) { 49 | z->L = L; 50 | z->reader = reader; 51 | z->data = data; 52 | z->n = 0; 53 | z->p = NULL; 54 | } 55 | 56 | 57 | /* --------------------------------------------------------------- read --- */ 58 | size_t luaZ_read (ZIO *z, void *b, size_t n) { 59 | while (n) { 60 | size_t m; 61 | if (luaZ_lookahead(z) == EOZ) 62 | return n; /* return number of missing bytes */ 63 | m = (n <= z->n) ? n : z->n; /* min. between n and z->n */ 64 | memcpy(b, z->p, m); 65 | z->n -= m; 66 | z->p += m; 67 | b = (char *)b + m; 68 | n -= m; 69 | } 70 | return 0; 71 | } 72 | 73 | /* ------------------------------------------------------------------------ */ 74 | char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n) { 75 | if (n > buff->buffsize) { 76 | if (n < LUA_MINBUFFER) n = LUA_MINBUFFER; 77 | luaZ_resizebuffer(L, buff, n); 78 | } 79 | return buff->buffer; 80 | } 81 | 82 | 83 | -------------------------------------------------------------------------------- /luacore/Lua/lzio.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** $Id: lzio.h,v 1.21 2005/05/17 19:49:15 roberto Exp $ 3 | ** Buffered streams 4 | ** See Copyright Notice in lua.h 5 | */ 6 | 7 | 8 | #ifndef lzio_h 9 | #define lzio_h 10 | 11 | #include "lua.h" 12 | 13 | #include "lmem.h" 14 | 15 | 16 | #define EOZ (-1) /* end of stream */ 17 | 18 | typedef struct Zio ZIO; 19 | 20 | #define char2int(c) cast(int, cast(unsigned char, (c))) 21 | 22 | #define zgetc(z) (((z)->n--)>0 ? char2int(*(z)->p++) : luaZ_fill(z)) 23 | 24 | typedef struct Mbuffer { 25 | char *buffer; 26 | size_t n; 27 | size_t buffsize; 28 | } Mbuffer; 29 | 30 | #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0) 31 | 32 | #define luaZ_buffer(buff) ((buff)->buffer) 33 | #define luaZ_sizebuffer(buff) ((buff)->buffsize) 34 | #define luaZ_bufflen(buff) ((buff)->n) 35 | 36 | #define luaZ_resetbuffer(buff) ((buff)->n = 0) 37 | 38 | 39 | #define luaZ_resizebuffer(L, buff, size) \ 40 | (luaM_reallocvector(L, (buff)->buffer, (buff)->buffsize, size, char), \ 41 | (buff)->buffsize = size) 42 | 43 | #define luaZ_freebuffer(L, buff) luaZ_resizebuffer(L, buff, 0) 44 | 45 | 46 | LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n); 47 | LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, 48 | void *data); 49 | LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ 50 | LUAI_FUNC int luaZ_lookahead (ZIO *z); 51 | 52 | 53 | 54 | /* --------- Private Part ------------------ */ 55 | 56 | struct Zio { 57 | size_t n; /* bytes still unread */ 58 | const char *p; /* current position in buffer */ 59 | lua_Reader reader; 60 | void* data; /* additional data */ 61 | lua_State *L; /* Lua state (for reader) */ 62 | }; 63 | 64 | 65 | LUAI_FUNC int luaZ_fill (ZIO *z); 66 | 67 | #endif 68 | -------------------------------------------------------------------------------- /luacore/LuaCore_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'LuaCore' target in the 'LuaCore' project. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | -------------------------------------------------------------------------------- /luacore/Luahack/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/luacore/Luahack/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /luacore/Luahack/English.lproj/KeyGrabber.nib/classes.nib: -------------------------------------------------------------------------------- 1 | { 2 | IBClasses = ( 3 | {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 4 | { 5 | ACTIONS = {allDone = id; }; 6 | CLASS = LHKeyGrabber; 7 | LANGUAGE = ObjC; 8 | OUTLETS = {grabberView = LHKeyGrabberView; }; 9 | SUPERCLASS = NSWindowController; 10 | }, 11 | {CLASS = LHKeyGrabberView; LANGUAGE = ObjC; SUPERCLASS = NSView; } 12 | ); 13 | IBVersion = 1; 14 | } -------------------------------------------------------------------------------- /luacore/Luahack/English.lproj/KeyGrabber.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBDocumentLocation 6 | 69 60 356 240 0 0 1920 1178 7 | IBFramework Version 8 | 446.1 9 | IBOpenObjects 10 | 11 | 5 12 | 13 | IBSystem Version 14 | 8L127 15 | 16 | 17 | -------------------------------------------------------------------------------- /luacore/Luahack/English.lproj/KeyGrabber.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/luacore/Luahack/English.lproj/KeyGrabber.nib/keyedobjects.nib -------------------------------------------------------------------------------- /luacore/Luahack/Info: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | BundleName 7 | Luahack.bundle 8 | LoadBundleOnLaunch 9 | YES 10 | LocalizedNames 11 | 12 | English 13 | Luahack 14 | 15 | NoMenuEntry 16 | YES 17 | 18 | -------------------------------------------------------------------------------- /luacore/Luahack/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleName 10 | ${PRODUCT_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | com.flyingmeat.Luahack 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /luacore/Luahack/LHExtraFunctions.h: -------------------------------------------------------------------------------- 1 | // 2 | // LuahackExtraFunctions.h 3 | // Luahack 4 | // 5 | // Created by August Mueller on 10/13/06. 6 | // Copyright 2006 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | void lua_luahacks_extras_init(lua_State* state); 13 | -------------------------------------------------------------------------------- /luacore/Luahack/LHKeyGrabber.h: -------------------------------------------------------------------------------- 1 | // 2 | // LHKeyGrabber.h 3 | // Luahack 4 | // 5 | // Created by August Mueller on 10/13/06. 6 | // Copyright 2006 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "LHKeyGrabberView.h" 11 | 12 | @interface LHKeyGrabber : NSWindowController { 13 | NSString *keysToGrab; 14 | NSString *grabbedKeys; 15 | IBOutlet LHKeyGrabberView *grabberView; 16 | } 17 | 18 | + (id) sharedKeyGrabber; 19 | 20 | - (void) grabNextKey; 21 | 22 | - (NSString *)keysToGrab; 23 | - (void)setKeysToGrab:(NSString *)newKeysToGrab; 24 | 25 | - (NSString *)grabbedKeys; 26 | - (void)setGrabbedKeys:(NSString *)newGrabbedKeys; 27 | 28 | - (IBAction) allDone:(id)sender; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /luacore/Luahack/LHKeyGrabber.m: -------------------------------------------------------------------------------- 1 | // 2 | // LHKeyGrabber.m 3 | // Luahack 4 | // 5 | // Created by August Mueller on 10/13/06. 6 | // Copyright 2006 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import "LHKeyGrabber.h" 10 | 11 | 12 | @implementation LHKeyGrabber 13 | 14 | + (id) sharedKeyGrabber { 15 | 16 | static id me = nil; 17 | 18 | if (!me) { 19 | me = [[self alloc] initWithWindowNibName:@"KeyGrabber"]; 20 | } 21 | 22 | return me; 23 | } 24 | 25 | - (void) grabNextKey { 26 | [[self window] makeFirstResponder:grabberView]; 27 | [NSApp runModalForWindow:[self window]]; 28 | } 29 | 30 | - (IBAction) allDone:(id)sender { 31 | [NSApp stopModal]; 32 | [[self window] orderOut:self]; 33 | } 34 | 35 | - (NSString *)keysToGrab { 36 | return keysToGrab; 37 | } 38 | - (void)setKeysToGrab:(NSString *)newKeysToGrab { 39 | [newKeysToGrab retain]; 40 | [keysToGrab release]; 41 | keysToGrab = newKeysToGrab; 42 | } 43 | 44 | - (NSString *)grabbedKeys { 45 | return grabbedKeys; 46 | } 47 | - (void)setGrabbedKeys:(NSString *)newGrabbedKeys { 48 | [newGrabbedKeys retain]; 49 | [grabbedKeys release]; 50 | grabbedKeys = newGrabbedKeys; 51 | } 52 | 53 | 54 | @end 55 | 56 | 57 | -------------------------------------------------------------------------------- /luacore/Luahack/LHKeyGrabberView.h: -------------------------------------------------------------------------------- 1 | // 2 | // LHKeyGrabberView.h 3 | // Luahack 4 | // 5 | // Created by August Mueller on 10/13/06. 6 | // Copyright 2006 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface LHKeyGrabberView : NSView { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /luacore/Luahack/LHKeyGrabberView.m: -------------------------------------------------------------------------------- 1 | // 2 | // LHKeyGrabberView.m 3 | // Luahack 4 | // 5 | // Created by August Mueller on 10/13/06. 6 | // Copyright 2006 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import "LHKeyGrabberView.h" 10 | #import "LHKeyGrabber.h" 11 | 12 | @implementation LHKeyGrabberView 13 | 14 | - (id)initWithFrame:(NSRect)frame { 15 | self = [super initWithFrame:frame]; 16 | if (self) { 17 | // Initialization code here. 18 | } 19 | return self; 20 | } 21 | 22 | - (void)drawRect:(NSRect)rect { 23 | // Drawing code here. 24 | } 25 | 26 | - (void) keyDown: (NSEvent*) anEvent { 27 | NSString *key = [anEvent charactersIgnoringModifiers]; 28 | debug(@"key: %@", key); 29 | 30 | [[[self window] delegate] setGrabbedKeys:key]; 31 | [[[self window] delegate] allDone:self]; 32 | } 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /luacore/Luahack/LuahackLoader.h: -------------------------------------------------------------------------------- 1 | // 2 | // LuahackLoader.h 3 | // Luahack 4 | // 5 | // Created by August Mueller on 10/13/06. 6 | // Copyright 2006 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface LuahackLoader : NSObject { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /luacore/Luahack/Luahack_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'Luahack' target in the 'Luahack' project. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #endif 8 | 9 | #define debug NSLog 10 | -------------------------------------------------------------------------------- /luacore/Luahack/bin/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SRC_HOME=`cd ${0%/*}/..;pwd` 4 | 5 | cd $SRC_HOME 6 | 7 | # remove the old one. 8 | if [ -d ~/Library/InputManagers/Luahack ]; then 9 | rm -rf ~/Library/InputManagers/Luahack 10 | fi 11 | 12 | ./bin/makedist.sh 13 | 14 | mkdir -p ~/Library/InputManagers 15 | 16 | cp -r dist/Luahack ~/Library/InputManagers/ 17 | -------------------------------------------------------------------------------- /luacore/Luahack/bin/makedist.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SRC_HOME=`cd ${0%/*}/..;pwd` 4 | BUILD_DIR="/tmp/fo" 5 | cd $SRC_HOME 6 | 7 | xcodebuild -buildstyle Deployment -project Luahack.xcodeproj build OBJROOT=$BUILD_DIR SYMROOT=$BUILD_DIR 8 | 9 | mkdir -p dist/Luahack 10 | 11 | cp -r /tmp/fo/Deployment/Luahack.bundle dist/Luahack/. 12 | cp resources/Info dist/Luahack/. 13 | 14 | cd dist 15 | -------------------------------------------------------------------------------- /luacore/Luahack/bin/rmsymlinks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SRC_HOME=`cd ${0%/*}/..;pwd` 4 | cd $SRC_HOME 5 | 6 | if [ -d ~/Library/InputManagers/Luahack ]; then 7 | rm -rf ~/Library/InputManagers/Luahack 8 | fi 9 | -------------------------------------------------------------------------------- /luacore/Luahack/bin/symlinks-make.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | SRC_HOME=`cd ${0%/*}/..;pwd` 4 | 5 | cd $SRC_HOME 6 | 7 | if [ -d ~/Library/InputManagers/Luahack ]; then 8 | rm -rf ~/Library/InputManagers/Luahack 9 | fi 10 | 11 | #ln -s 12 | 13 | mkdir ~/Library/InputManagers/Luahack 14 | 15 | cd ~/Library/InputManagers/Luahack 16 | 17 | ln -s $SRC_HOME/Info . 18 | 19 | ln -s $SRC_HOME/build/Debug/Luahack.bundle . -------------------------------------------------------------------------------- /luacore/Source/LCCoreGraphics.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | void lua_coregraphics_init(lua_State* state); 10 | -------------------------------------------------------------------------------- /luacore/Source/LCLua.h: -------------------------------------------------------------------------------- 1 | // 2 | // FMLua.h 3 | // luatest 4 | // 5 | // Created by August Mueller on 12/4/05. 6 | // Copyright 2005 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #include "lua.h" 12 | #include "lauxlib.h" 13 | #include "lualib.h" 14 | 15 | #include 16 | #include 17 | #include 18 | 19 | extern NSString *FMRunningInLuaKey; 20 | 21 | @interface LCLua : NSObject { 22 | lua_State *L; 23 | } 24 | 25 | + (id) readyLua; 26 | 27 | - (lua_State*) state; 28 | 29 | - (void) setup; 30 | - (void) tearDown; 31 | 32 | - (void) runBuffer:(NSString*)buf; 33 | - (void) runFileAtPath:(NSString*)filePath; 34 | 35 | - (BOOL) int:(int*)val named:(NSString*)name; 36 | - (BOOL) bool:(BOOL*)val named:(NSString*)name; 37 | - (BOOL) float:(float*)val named:(NSString*)name; 38 | - (BOOL) double:(double*)val named:(NSString*)name; 39 | 40 | - (NSNumber*) numberNamed:(NSString*)name; 41 | - (NSString*) stringNamed:(NSString*)name; 42 | - (id) objectNamed:(NSString*)name; 43 | 44 | - (void) pushGlobalObject:(id)object withName:(NSString*)name; 45 | - (void) pushDictionaryAsTable:(NSDictionary*)d withName:(NSString*)name; 46 | - (void) pushAsLuaString:(NSString*)s withName:(NSString*)name; 47 | - (void) callEmptyFunctionNamed:(NSString*)functionName; 48 | - (void) callFunction:(NSString*)functionName withArg:(id)arg; 49 | 50 | + (NSString*) runScriptInBundle:(NSString*)scriptName withInput:(NSString*)input named:(NSString*)inputNamed recievingOuputNamed:(NSString*)outName; 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /luacore/Source/LCLuaFoundation.h: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #include 4 | #include 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | 11 | extern int luaToNSString (lua_State *lua); 12 | extern int nsToLuaString (lua_State *lua); 13 | 14 | extern int luaToNSRange(lua_State *lua); 15 | extern int nsToLuaRange(lua_State *lua); 16 | 17 | extern int luaToNSPoint(lua_State *lua); 18 | extern int nsToLuaPoint(lua_State *lua); 19 | 20 | extern int luaToNSRect(lua_State *lua); 21 | extern int nsToLuaRect(lua_State *lua); 22 | 23 | extern int luaNSMakeRect(lua_State *lua); 24 | extern int nsBeep(lua_State *lua); 25 | 26 | extern int nsAlert(lua_State *lua); 27 | 28 | NSString *stringFromArgument(lua_State *lua, int idx); 29 | 30 | NSDictionary * dictionaryFromCurrentTable(lua_State *lua); 31 | NSArray * arrayFromCurrentTable(lua_State *lua); 32 | NSArray * arrayFromTable(lua_State *lua, int argIdx) ; 33 | 34 | void lerror (lua_State *L, const char *fmt, ...); 35 | 36 | void lua_objc_help_init(lua_State* state); 37 | void lua_extrastring_init(lua_State* state); 38 | 39 | -------------------------------------------------------------------------------- /luacore/Source/LuaCore.h: -------------------------------------------------------------------------------- 1 | /* 2 | * LuaCore.h 3 | * LuaCore 4 | * 5 | * Created by August Mueller on 7/30/06. 6 | * Copyright 2006 Flying Meat Inc.. All rights reserved. 7 | * 8 | */ 9 | 10 | #import 11 | -------------------------------------------------------------------------------- /luacore/Source/LuaObjCBridge.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 3 | * LuaObjCBridge.h 4 | * 5 | * By Tom McClean, 2005/2006 6 | * tom@pixelballistics.com 7 | * 8 | * This file is public domain. It is provided without any warranty whatsoever, 9 | * and may be modified or used without attribution. 10 | * 11 | */ 12 | 13 | #include "lua.h" 14 | #include "lualib.h" 15 | #include "lauxlib.h" 16 | 17 | extern lua_State* lua_objc_init(); 18 | extern int lua_objc_open(lua_State* state); 19 | 20 | #ifdef __OBJC__ 21 | #import 22 | 23 | // 24 | // 25 | // C-callable functions (public) 26 | // 27 | // 28 | 29 | extern id lua_objc_getid(lua_State* state,int stack_index); 30 | extern void lua_objc_pushid(lua_State* state,id object); 31 | extern int lua_objc_isid(lua_State* state,int stack_index); 32 | extern void lua_objc_setid(lua_State* state,int stack_index,id object); 33 | extern id lua_objc_toid(lua_State* state,int stack_index); 34 | 35 | extern BOOL lua_objc_pushpropertylist(lua_State* state,id propertylist); 36 | extern id lua_objc_topropertylist(lua_State* state,int stack_index); 37 | 38 | extern void lua_objc_id_setvalues(lua_State* state,int stack_index,NSDictionary* dictionary); 39 | extern NSDictionary* lua_objc_id_getvalues(lua_State* state,int stack_index); 40 | 41 | extern unsigned lua_objc_type_alignment(char** typeptr); 42 | extern unsigned lua_objc_type_size(char** typeptr); 43 | 44 | // 45 | // 46 | // C-callable functions (recommended for internal use only) 47 | // 48 | // 49 | 50 | extern void lua_objc_configuremetatable(lua_State* state, int stack_index,int hook_gc_events); 51 | extern void* lua_objc_topointer(lua_State* state,int stack_index); 52 | 53 | // 54 | // 55 | // Lua-callable functions (parameters/results on Lua stack) 56 | // 57 | // 58 | 59 | extern int lua_objc_lookup_class(lua_State* state); 60 | extern int lua_objc_methodcall(lua_State* state); 61 | extern int lua_objc_methodlookup(lua_State* state); 62 | extern int lua_objc_release(lua_State* state); 63 | 64 | #endif -------------------------------------------------------------------------------- /luacore/Source/lposix.h: -------------------------------------------------------------------------------- 1 | #ifndef LPOSIX_H 2 | #define LPOSIX_H 3 | 4 | int luaopen_posix (lua_State *L); 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /luacore/TestApp/cgtest.lua: -------------------------------------------------------------------------------- 1 | 2 | 3 | data = objc.class("NSData"):dataWithContentsOfFile(LCLuaRunFileDirectory .. "/stevie.png") 4 | imageSourceRef = CGImageSourceCreateWithData(data, nil) 5 | imageRef = CGImageSourceCreateImageAtIndex(imageSourceRef, 0, nil) 6 | 7 | context = CGBitmapContextCreate(CGImageGetWidth(imageRef), CGImageGetHeight(imageRef)) 8 | 9 | CGContextSaveGState(context); 10 | 11 | -- flip the context 12 | CGContextTranslateCTM( context, 0, CGImageGetHeight(imageRef)) 13 | CGContextScaleCTM(context, 1.0, -1.0 ) 14 | 15 | CGContextDrawImage(context, {0, 0, CGImageGetWidth(imageRef), CGImageGetHeight(imageRef)}, imageRef) 16 | 17 | CGContextRestoreGState(context); 18 | 19 | CGImageRelease(imageRef); 20 | CFRelease(imageSourceRef); 21 | 22 | newImage = CGBitmapContextCreateImage(context) 23 | 24 | mutableData = objc.class("NSMutableData"):data() 25 | 26 | imageDestination = CGImageDestinationCreateWithData(mutableData, "public.tiff", 1, nil); 27 | 28 | CGImageDestinationAddImage(imageDestination, newImage, nil); 29 | CGImageDestinationFinalize(imageDestination); 30 | 31 | CGImageRelease(newImage) 32 | CFRelease(imageDestination) 33 | 34 | CGBitmapContextRelease(context) 35 | 36 | mutableData:writeToFile_atomically_("/tmp/bob.tiff", true) 37 | 38 | -- os.execute("/usr/bin/open /tmp/bob.tiff") 39 | -------------------------------------------------------------------------------- /luacore/TestApp/classtest.lua: -------------------------------------------------------------------------------- 1 | 2 | foo2 = objc.class("TestClass"):alloc():init() 3 | 4 | print(foo2) 5 | 6 | foo2:setI(1234) 7 | print(foo2:getI()) 8 | foo2:setI2(4321) 9 | print(foo2:getI()) 10 | 11 | -------------------------------------------------------------------------------- /luacore/TestApp/simpletest.lua: -------------------------------------------------------------------------------- 1 | 2 | print ('hello world') 3 | 4 | s = objc.class("NSString"):stringWithString("hello world again") 5 | 6 | print(s) 7 | 8 | print("sharedWorkspace:") 9 | print(objc.class("NSWorkspace"):sharedWorkspace()) 10 | 11 | -------------------------------------------------------------------------------- /luacore/TestApp/stevie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/luacore/TestApp/stevie.png -------------------------------------------------------------------------------- /proxiappwindowbringerupper/English.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/proxiappwindowbringerupper/English.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /proxiappwindowbringerupper/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleName 10 | ${PRODUCT_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | com.flyingmeat.Proxi.quote 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundlePackageType 18 | BNDL 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 0.1 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /proxiappwindowbringerupper/ProxiAppWindowBringerUpper.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface ProxiAppWindowBringerUpper : NSObject 4 | { 5 | 6 | } 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /proxiappwindowbringerupper/ProxiAppWindowBringerUpper.m: -------------------------------------------------------------------------------- 1 | #import "ProxiAppWindowBringerUpper.h" 2 | #import 3 | 4 | static OSStatus handleAppFrontSwitched(EventHandlerCallRef inHandlerCallRef, EventRef inEvent, void *inUserData); 5 | static OSStatus mouseActivated(EventHandlerCallRef nextHandler, EventRef theEvent, void *userData); 6 | 7 | EventHandlerRef MySkankyGlobalFrontAppSwitchedHandlerRef; 8 | 9 | 10 | @implementation ProxiAppWindowBringerUpper 11 | 12 | + (void) load 13 | { 14 | debug(@"%s:%d", __FUNCTION__, __LINE__); 15 | 16 | EventTypeSpec spec = { kEventClassApplication, kEventAppFrontSwitched }; 17 | 18 | OSStatus err = InstallApplicationEventHandler(NewEventHandlerUPP(handleAppFrontSwitched), 1, &spec, nil, &MySkankyGlobalFrontAppSwitchedHandlerRef); 19 | 20 | if (err) { 21 | NSLog(@"Error looking for front app."); 22 | } 23 | } 24 | 25 | 26 | static OSStatus handleAppFrontSwitched(EventHandlerCallRef inHandlerCallRef, EventRef inEvent, void *inUserData) { 27 | 28 | debug(@"%s:%d", __FUNCTION__, __LINE__); 29 | 30 | NSWorkspace *workspace = [NSWorkspace sharedWorkspace]; 31 | 32 | NSDictionary *activeAppDict = [workspace activeApplication]; 33 | ProcessSerialNumber psn; 34 | 35 | psn.highLongOfPSN = [[activeAppDict objectForKey:@"NSApplicationProcessSerialNumberHigh"] intValue]; 36 | psn.lowLongOfPSN = [[activeAppDict objectForKey:@"NSApplicationProcessSerialNumberLow"] intValue]; 37 | 38 | SetFrontProcess( &psn ); 39 | 40 | // this .. causes a bit o' recursion for some reason. 41 | //ProcessSerialNumber xpsn = { 0, kCurrentProcess }; 42 | //SetFrontProcess( & xpsn ); 43 | 44 | return 0; 45 | } 46 | 47 | @end -------------------------------------------------------------------------------- /proxiappwindowbringerupper/ProxiAppWindowBringerUpper_Prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #define debug NSLog 6 | -------------------------------------------------------------------------------- /randomscripts/webkitupdate.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | 3 | import os 4 | import os.path 5 | import sys 6 | 7 | # you're going to want to change this location. 8 | appFolder = "/Volumes/srv/Users/gus/Applications" 9 | 10 | if not os.path.exists(appFolder): 11 | print("The folder " + appFolder + " does not exist.") 12 | sys.exit(1) 13 | 14 | s = os.popen("curl http://nightly.webkit.org/builds/trunk/mac/rss").read() 15 | 16 | sloc = s.find('') 17 | eloc = s.find('') 18 | 19 | #url = "http://builds.nightly.webkit.org/" + s[sloc+10:eloc + 4] 20 | 21 | url = s[sloc+6: eloc] 22 | 23 | print url 24 | 25 | os.chdir("/tmp") 26 | 27 | os.popen("curl -O " + url) 28 | os.popen("/usr/bin/hdiutil mount WebKit-SVN*.dmg") 29 | os.popen("killall Safari") 30 | 31 | os.popen("rm -r " + appFolder + "/WebKit.app") 32 | 33 | os.popen("cp -rp /Volumes/WebKit/WebKit.app " + appFolder + "/") 34 | 35 | os.popen("hdiutil detach /Volumes/WebKit") 36 | 37 | os.popen("rm /tmp/WebKit-SVN*.dmg") 38 | 39 | os.popen("open -a WebKit") 40 | 41 | -------------------------------------------------------------------------------- /voodoopadplugins/documentview/DocumentViewPlugin.h: -------------------------------------------------------------------------------- 1 | // 2 | // ScriptStuffPlugin.h 3 | // ScriptStuff 4 | // 5 | // Created by August Mueller on 10/25/04. 6 | // Copyright 2004 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface DocumentViewPlugin : VPPlugin { 13 | 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /voodoopadplugins/documentview/DocumentViewWindow.nib/classes.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBClasses 6 | 7 | 8 | CLASS 9 | DocumentViewWindowController 10 | LANGUAGE 11 | ObjC 12 | OUTLETS 13 | 14 | scrollView 15 | NSScrollView 16 | 17 | SUPERCLASS 18 | NSWindowController 19 | 20 | 21 | IBVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /voodoopadplugins/documentview/DocumentViewWindow.nib/info.nib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IBFramework Version 6 | 670 7 | IBLastKnownRelativeProjectPath 8 | DocumentView.xcodeproj 9 | IBOldestOS 10 | 5 11 | IBOpenObjects 12 | 13 | IBSystem Version 14 | 9D34 15 | targetFramework 16 | IBCocoaFramework 17 | 18 | 19 | -------------------------------------------------------------------------------- /voodoopadplugins/documentview/DocumentViewWindow.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/voodoopadplugins/documentview/DocumentViewWindow.nib/keyedobjects.nib -------------------------------------------------------------------------------- /voodoopadplugins/documentview/DocumentViewWindowController.h: -------------------------------------------------------------------------------- 1 | // 2 | // DocumentViewWindowController.h 3 | // DocumentView 4 | // 5 | // Created by August Mueller on 4/5/07. 6 | // Copyright 2007 Flying Meat Inc.. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface DocumentViewWindowController : NSWindowController { 13 | IBOutlet NSScrollView *scrollView; 14 | 15 | NSLayoutManager *layoutMgr; 16 | NSTextStorage *textStorage; 17 | } 18 | 19 | - (void) loadAttributedString:(NSAttributedString*) ats; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /voodoopadplugins/documentview/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | DocumentView 9 | CFBundleGetInfoString 10 | 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | com.flyingmeat.DocumentView 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0.0d1 25 | LSTypeIsPackage 26 | 27 | NSPrincipalClass 28 | DocumentViewPlugin 29 | 30 | 31 | -------------------------------------------------------------------------------- /voodoopadplugins/documentview/MultiplePageView.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface MultiplePageView : NSView { 4 | NSPrintInfo *printInfo; 5 | NSColor *lineColor; 6 | NSColor *marginColor; 7 | int numPages; 8 | int pageBeingPrinted; 9 | } 10 | 11 | - (void)setPrintInfo:(NSPrintInfo *)anObject; 12 | - (NSPrintInfo *)printInfo; 13 | - (float)pageSeparatorHeight; 14 | - (NSSize)documentSizeInPage; /* Returns the area where the document can draw */ 15 | - (NSRect)documentRectForPageNumber:(int)pageNumber; /* First page is page 0 */ 16 | - (NSRect)pageRectForPageNumber:(int)pageNumber; /* First page is page 0 */ 17 | - (void)setNumberOfPages:(int)num; 18 | - (int)numberOfPages; 19 | - (void)setLineColor:(NSColor *)color; 20 | - (NSColor *)lineColor; 21 | - (void)setMarginColor:(NSColor *)color; 22 | - (NSColor *)marginColor; 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /voodoopadplugins/htmltools/English.lproj/HTMLPreview.nib/keyedobjects.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/voodoopadplugins/htmltools/English.lproj/HTMLPreview.nib/keyedobjects.nib -------------------------------------------------------------------------------- /voodoopadplugins/htmltools/HTMLToolsPlugin.h: -------------------------------------------------------------------------------- 1 | // Created by August Mueller on 10/25/04. 2 | // Copyright 2004 __MyCompanyName__. All rights reserved. 3 | 4 | #import 5 | #import 6 | #import 7 | 8 | 9 | @interface HTMLToolsPlugin : VPPlugin { 10 | 11 | IBOutlet NSWindow *previewWindow; 12 | IBOutlet WebView *webView; 13 | IBOutlet NSPopUpButton *formattingSelection; 14 | 15 | NSString *previewKey; 16 | 17 | id previewDoc; 18 | } 19 | 20 | - (void) updateHTMLPreview:(id)sender; 21 | 22 | - (NSString *)previewKey; 23 | - (void)setPreviewKey:(NSString *)newPreviewKey; 24 | 25 | - (id)previewDoc; 26 | - (void)setPreviewDoc:(id)newPreviewDoc; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /voodoopadplugins/htmltools/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | HTMLTools 9 | CFBundleGetInfoString 10 | 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | com.flyingmeat.HTMLTools 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0.0d1 25 | LSTypeIsPackage 26 | 27 | NSPrincipalClass 28 | HTMLToolsPlugin 29 | 30 | 31 | -------------------------------------------------------------------------------- /voodoopadplugins/htmltools/ScriptletWrapper.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | function main(writer) { 4 | writer.write("%@"); 5 | } 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /voodoopadplugins/htmltools/Textile.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | $file = $ARGV[0] . ".html"; 4 | 5 | my $input = do { local $/; <> }; 6 | 7 | $me = `echo ${0}`; 8 | $len = length($me); 9 | $parentDir = substr($me, 0, $len - 12); 10 | 11 | chdir($parentDir); 12 | 13 | require Text::Textile; 14 | #require Textile; 15 | 16 | my $textile = new Text::Textile; 17 | #my $textile = new Textile; 18 | 19 | $textile->charset("UTF-8"); 20 | 21 | open( FILE, "> $file" ) or die "Can't open $file : $!"; 22 | print FILE $textile->textile($input); 23 | close FILE; 24 | 25 | #print $file . "\n"; 26 | -------------------------------------------------------------------------------- /voodoopadplugins/htmltools/VPScriptletWriter.h: -------------------------------------------------------------------------------- 1 | // 2 | // VPScriptletWriter.h 3 | // HTMLTools 4 | // 5 | // Created by August Mueller on 10/12/10. 6 | // Copyright 2010 Flying Meat Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface VPScriptletWriter : NSObject { 13 | NSMutableString *_buffer; 14 | } 15 | 16 | @property (retain) NSMutableString *buffer; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /voodoopadplugins/htmltools/VPScriptletWriter.m: -------------------------------------------------------------------------------- 1 | // 2 | // VPScriptletWriter.m 3 | // HTMLTools 4 | // 5 | // Created by August Mueller on 10/12/10. 6 | // Copyright 2010 Flying Meat Inc. All rights reserved. 7 | // 8 | 9 | #import "VPScriptletWriter.h" 10 | 11 | 12 | @implementation VPScriptletWriter 13 | @synthesize buffer=_buffer; 14 | 15 | - (id) init { 16 | self = [super init]; 17 | if (self != nil) { 18 | _buffer = [[NSMutableString alloc] init]; 19 | } 20 | return self; 21 | } 22 | 23 | 24 | - (void)dealloc { 25 | [[NSNotificationCenter defaultCenter] removeObserver:self]; 26 | 27 | [_buffer release]; 28 | [super dealloc]; 29 | } 30 | 31 | - (void)write:(NSString*)s { 32 | [_buffer appendString:s]; 33 | } 34 | 35 | - (void)writeln:(NSString*)s { 36 | [_buffer appendString:s]; 37 | [_buffer appendString:@"\n"]; 38 | } 39 | 40 | 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /voodoopadplugins/htmltools/wakkarun.php: -------------------------------------------------------------------------------- 1 | #!/usr/bin/php 2 | Run($input); 28 | 29 | $outputStream = fopen($argv[1] . ".html", "w"); 30 | 31 | fwrite($outputStream, $output); 32 | 33 | fclose ($outputStream); 34 | 35 | 36 | ?> -------------------------------------------------------------------------------- /voodoopadplugins/htmltools/wakkatest_tmp: -------------------------------------------------------------------------------- 1 | =====Acorn===== 2 | 3 | "Acorn is a new image editor built with one goal in mind - simplicity. Fast, easy, and fluid, Acorn provides the options you'll need without any overhead. Acorn feels right, and won't drain your bank account." http://flyingmeat.com/acorn/ 4 | 5 | **[[AcornTour Take a Tour of Acorn]]:** Get started with an introduction to the interface and the features of Acorn 6 | ~-[[AcornTour Opening Acorn]] 7 | ~-[[AcornToolsPalette Tools Palette]] 8 | ~-[[AcornLayers Layers]] 9 | ~-[[AcornColorsFonts Color and Fonts Palette]] 10 | ~-[[AcornMenuItems Menu Items]] 11 | ~-[[AcornLevels Levels]] 12 | ~-[[AcornScreenShots Taking Screen Shots with Acorn]] 13 | ~-[[AcornSlideShow Making Slideshows with Acorn]] 14 | 15 | **[[AcornFilters Go Further with Filters]]** --- A guide to the filters included in Acorn. 16 | 17 | **[[ThirdPartyAcornPlugins 3rd Party Acorn Plugins]]** --- Download extra filters and plugins for Acorn. 18 | 19 | **[[AcornTipsAndTricks How To's, Tips, and Tricks for Acorn]]** --- Simple ideas and tricks to make working with Acorn easier. 20 | 21 | =====Advanced uses of Acorn for developers and curious persons===== 22 | 23 | ~-[[AcornPlugins Writing Acorn Plugins]] --- Information and examples for developers wanting to write plugins for Acorn in [[http://www.python.org/ Python]] and Objective-C 24 | ~-[[http://flyingmeat.com/download/latest/ Development Builds]] --- Prerelease versions of Acorn that will crash your computer, punch you in the eye, and steal your girlfriend. -------------------------------------------------------------------------------- /voodoopadplugins/htmltools/wakkatest_tmp.html: -------------------------------------------------------------------------------- 1 |

Acorn

2 | 3 |
4 | "Acorn is a new image editor built with one goal in mind - simplicity. Fast, easy, and fluid, Acorn provides the options you'll need without any overhead. Acorn feels right, and won't drain your bank account." http://flyingmeat.com/acorn/
5 |
6 | AcornTour: Get started with an introduction to the interface and the features of Acorn
7 |
  • AcornTour 8 |
  • AcornToolsPalette 9 |
  • AcornLayers 10 |
  • AcornColorsFonts 11 |
  • AcornMenuItems 12 |
  • AcornLevels 13 |
  • AcornScreenShots 14 |
  • AcornSlideShow
15 |
16 | AcornFilters
A guide to the filters included in Acorn.
17 |
18 | ThirdPartyAcornPlugins
Download extra filters and plugins for Acorn.
19 |
20 | AcornTipsAndTricks
Simple ideas and tricks to make working with Acorn easier.
21 |
22 |

Advanced uses of Acorn for developers and curious persons

23 | 24 |
25 |
  • AcornPlugins
    Information and examples for developers wanting to write plugins for Acorn in http://www.python.org/ and Objective-C 26 |
  • http://flyingmeat.com/download/latest/
    Prerelease versions of Acorn that will crash your computer, punch you in the eye, and steal your girlfriend. -------------------------------------------------------------------------------- /voodoopadplugins/scriptstuff/ScriptStuff.vpplugin.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/voodoopadplugins/scriptstuff/ScriptStuff.vpplugin.zip -------------------------------------------------------------------------------- /voodoopadplugins/scriptstuff/src/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ScriptStuff 9 | CFBundleGetInfoString 10 | 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | com.flyingmeat.ScriptStuff 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0.0d1 25 | LSTypeIsPackage 26 | 27 | NSPrincipalClass 28 | ScriptStuffPlugin 29 | 30 | 31 | -------------------------------------------------------------------------------- /voodoopadplugins/scriptstuff/src/ScriptStuffPlugin.h: -------------------------------------------------------------------------------- 1 | // 2 | // ScriptStuffPlugin.h 3 | // ScriptStuff 4 | // 5 | // Created by August Mueller on 10/25/04. 6 | // Copyright 2004 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | 13 | @interface ScriptStuffPlugin : VPPlugin { 14 | 15 | } 16 | 17 | - (NSString*) findPythonScript; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /voodoopadplugins/scriptstuff/src/py2html.py.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/voodoopadplugins/scriptstuff/src/py2html.py.html -------------------------------------------------------------------------------- /vpreader/Classes/RootViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // RootViewController.h 3 | // vpreader 4 | // 5 | // Created by August Mueller on 1/9/09. 6 | // Copyright Flying Meat Inc 2009. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "SyncViewController.h" 11 | #import "WebViewController.h" 12 | 13 | @interface RootViewController : UITableViewController { 14 | SyncViewController *syncViewController; 15 | WebViewController *webViewController; 16 | NSMutableArray *_documentNames; 17 | 18 | BOOL _hasLoadedSyncViewOnce; 19 | } 20 | 21 | 22 | @property (nonatomic,retain) SyncViewController *syncViewController; 23 | @property (nonatomic,retain) WebViewController *webViewController; 24 | @property (nonatomic,retain) NSMutableArray *documentNames; 25 | 26 | 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /vpreader/Classes/SyncViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SyncViewController.h 3 | // vpreader 4 | // 5 | // Created by August Mueller on 1/9/09. 6 | // Copyright 2009 Flying Meat Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "BLIPConnection.h" 11 | 12 | @interface SyncViewController : UIViewController { 13 | BLIPListener *_listener; 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /vpreader/Classes/VPReaderAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // vpreaderAppDelegate.h 3 | // vpreader 4 | // 5 | // Created by August Mueller on 1/9/09. 6 | // Copyright Flying Meat Inc 2009. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface VPReaderAppDelegate : NSObject { 12 | 13 | UIWindow *window; 14 | UINavigationController *navigationController; 15 | } 16 | 17 | @property (nonatomic, retain) IBOutlet UIWindow *window; 18 | @property (nonatomic, retain) IBOutlet UINavigationController *navigationController; 19 | 20 | + (NSString*)documentFolder; 21 | 22 | @end 23 | 24 | -------------------------------------------------------------------------------- /vpreader/Classes/VPReaderAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // VPReaderAppDelegate.m 3 | // vpreader 4 | // 5 | // Created by August Mueller on 1/9/09. 6 | // Copyright Flying Meat Inc 2009. All rights reserved. 7 | // 8 | 9 | #import "VPReaderAppDelegate.h" 10 | #import "RootViewController.h" 11 | 12 | 13 | @implementation VPReaderAppDelegate 14 | 15 | @synthesize window; 16 | @synthesize navigationController; 17 | 18 | 19 | - (void)applicationDidFinishLaunching:(UIApplication *)application { 20 | debug(@"whut?"); 21 | // Configure and show the window 22 | [window addSubview:[navigationController view]]; 23 | [window makeKeyAndVisible]; 24 | } 25 | 26 | 27 | - (void)applicationWillTerminate:(UIApplication *)application { 28 | // Save data if appropriate 29 | } 30 | 31 | 32 | - (void)dealloc { 33 | [navigationController release]; 34 | [window release]; 35 | [super dealloc]; 36 | } 37 | 38 | + (NSString*)documentFolder { 39 | 40 | NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); 41 | NSString *documentsDirectory = [paths objectAtIndex:0]; 42 | 43 | BOOL isDir; 44 | if (![[NSFileManager defaultManager] fileExistsAtPath:documentsDirectory isDirectory:&isDir]) { 45 | [[NSFileManager defaultManager] createDirectoryAtPath:documentsDirectory attributes:nil]; 46 | } 47 | 48 | return documentsDirectory; 49 | } 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /vpreader/Classes/WebViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // WebViewController.h 3 | // vpreader 4 | // 5 | // Created by August Mueller on 1/9/09. 6 | // Copyright 2009 Flying Meat Inc. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface WebViewController : UIViewController { 13 | IBOutlet UIWebView *webView; 14 | 15 | IBOutlet UIBarButtonItem *backButton; 16 | IBOutlet UIBarButtonItem *homeButton; 17 | IBOutlet UIBarButtonItem *forwardButton; 18 | 19 | NSString *_documentDirectory; 20 | } 21 | @property (retain) NSString *documentDirectory; 22 | 23 | - (void) loadDocumentDirectory:(NSString*)path; 24 | 25 | - (void) goHome:(id)sender; 26 | - (void) goToIndex:(id)sender; 27 | - (void) goToDocList:(id)sender; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /vpreader/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | VPReader.png 13 | CFBundleIdentifier 14 | com.flyingmeat.vpreader 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | ${PRODUCT_NAME} 19 | CFBundlePackageType 20 | APPL 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.1 25 | LSRequiresIPhoneOS 26 | 27 | NSMainNibFile 28 | MainWindow 29 | 30 | 31 | -------------------------------------------------------------------------------- /vpreader/README.txt: -------------------------------------------------------------------------------- 1 | This is the source to "VP Reader", and app that copies over VoodooPad documents from VoodooPad 4.1. 2 | 3 | Special thanks to Jens Alfke for BLIP: http://mooseyard.com/projects/MYNetwork/ 4 | 5 | It's superawesometastic. 6 | 7 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/.hg_archival.txt: -------------------------------------------------------------------------------- 1 | repo: 9d67172bb3232312f3b9fb8f3b1ea6f9c0bfa2cf 2 | node: a4875607a3a054971a5314188b179a8dfdfb90e5 3 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/.hgignore: -------------------------------------------------------------------------------- 1 | syntax: glob 2 | .DS_Store 3 | build 4 | Documentation 5 | Doxyfile 6 | uploadDocs 7 | .svn 8 | (*) 9 | *.pbxuser 10 | *.perspectivev3 11 | *.mpkg 12 | *.framework 13 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/.hgtags: -------------------------------------------------------------------------------- 1 | 2c4bb6968927ac49809c0f8dcfdc0d1b347e079c release_1 2 | 02224e98120993726f618bd5949a8a2277b7e1bc 1.0 3 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/BLIP/BLIP.h: -------------------------------------------------------------------------------- 1 | // 2 | // BLIP.h 3 | // MYNetwork 4 | // 5 | // Created by Jens Alfke on 5/24/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "BLIPConnection.h" 10 | #import "BLIPDispatcher.h" 11 | #import "BLIPRequest.h" 12 | #import "BLIPProperties.h" 13 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/BLIP/BLIP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/blip/MYNetwork/BLIP/BLIP.png -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/BLIP/BLIPReader.h: -------------------------------------------------------------------------------- 1 | // 2 | // BLIPReader.h 3 | // MYNetwork 4 | // 5 | // Created by Jens Alfke on 5/10/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "TCPStream.h" 10 | #import "BLIP_Internal.h" 11 | @class BLIPResponse; 12 | 13 | 14 | /** INTERNAL class that reads BLIP frames from the socket. */ 15 | @interface BLIPReader : TCPReader 16 | { 17 | @private 18 | BLIPFrameHeader _curHeader; 19 | UInt32 _curBytesRead; 20 | NSMutableData *_curBody; 21 | 22 | UInt32 _numRequestsReceived; 23 | NSMutableDictionary *_pendingRequests, *_pendingResponses; 24 | } 25 | 26 | - (void) _addPendingResponse: (BLIPResponse*)response; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/BLIP/BLIPWriter.h: -------------------------------------------------------------------------------- 1 | // 2 | // BLIPFrameWriter.h 3 | // MYNetwork 4 | // 5 | // Created by Jens Alfke on 5/18/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "TCPWriter.h" 10 | @class BLIPRequest, BLIPResponse, BLIPMessage; 11 | 12 | 13 | /** INTERNAL class that sends BLIP frames over the socket. */ 14 | @interface BLIPWriter : TCPWriter 15 | { 16 | @private 17 | NSMutableArray *_outBox; 18 | UInt32 _numRequestsSent; 19 | } 20 | 21 | - (BOOL) sendRequest: (BLIPRequest*)request response: (BLIPResponse*)response; 22 | - (BOOL) sendMessage: (BLIPMessage*)message; 23 | 24 | @property (readonly) UInt32 numRequestsSent; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/BLIP/Demo/BLIP Echo Client-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.yourcompany.${PRODUCT_NAME:identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | APPL 15 | CFBundleSignature 16 | ???? 17 | CFBundleVersion 18 | 1.0 19 | NSMainNibFile 20 | BLIPEchoClient 21 | NSPrincipalClass 22 | NSApplication 23 | 24 | 25 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/BLIP/Demo/BLIPEchoClient.h: -------------------------------------------------------------------------------- 1 | // 2 | // BLIPEchoClient.h 3 | // MYNetwork 4 | // 5 | // Created by Jens Alfke on 5/24/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // Adapted from Apple sample code "CocoaEcho": 8 | // http://developer.apple.com/samplecode/CocoaEcho/index.html 9 | // 10 | 11 | #import 12 | @class BLIPConnection; 13 | 14 | 15 | @interface BLIPEchoClient : NSObject 16 | { 17 | IBOutlet NSTextField * inputField; 18 | IBOutlet NSTextField * responseField; 19 | IBOutlet NSTableView * serverTableView; 20 | 21 | NSNetServiceBrowser * _serviceBrowser; 22 | NSMutableArray * _serviceList; 23 | 24 | BLIPConnection *_connection; 25 | } 26 | 27 | @property (readonly) NSMutableArray *serviceList; 28 | 29 | - (IBAction)sendText:(id)sender; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/BLIP/Demo/BLIPEchoServer.h: -------------------------------------------------------------------------------- 1 | // 2 | // BLIPEchoServer.h 3 | // MYNetwork 4 | // 5 | // Created by Jens Alfke on 5/24/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "BLIPConnection.h" 11 | 12 | @interface BLIPEchoServer : NSObject 13 | { 14 | BLIPListener *_listener; 15 | } 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/BLIP/Demo/BLIPEchoServer.m: -------------------------------------------------------------------------------- 1 | // 2 | // BLIPEchoServer.m 3 | // MYNetwork 4 | // 5 | // Created by Jens Alfke on 5/24/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "BLIPEchoServer.h" 10 | #import "BLIP.h" 11 | 12 | 13 | @implementation BLIPEchoServer 14 | 15 | 16 | - (id) init 17 | { 18 | self = [super init]; 19 | if (self != nil) { 20 | _listener = [[BLIPListener alloc] initWithPort: 12345]; 21 | _listener.delegate = self; 22 | _listener.pickAvailablePort = YES; 23 | _listener.bonjourServiceType = @"_blipecho._tcp"; 24 | [_listener open]; 25 | NSLog(@"%@ is listening...",self); 26 | } 27 | return self; 28 | } 29 | 30 | - (void) dealloc 31 | { 32 | [_listener close]; 33 | [_listener release]; 34 | [super dealloc]; 35 | } 36 | 37 | - (void) listener: (TCPListener*)listener failedToOpen: (NSError*)error 38 | { 39 | NSLog(@"** %@ failed to open: %@",self,error); 40 | } 41 | 42 | - (void) listener: (TCPListener*)listener didAcceptConnection: (TCPConnection*)connection 43 | { 44 | NSLog(@"** %@ accepted %@",self,connection); 45 | connection.delegate = self; 46 | } 47 | 48 | - (void) connection: (TCPConnection*)connection failedToOpen: (NSError*)error 49 | { 50 | NSLog(@"** %@ failedToOpen: %@",connection,error); 51 | } 52 | 53 | - (void) connection: (BLIPConnection*)connection receivedRequest: (BLIPRequest*)request 54 | { 55 | NSLog(@"***** %@ received %@",connection,request); 56 | [request respondWithData: request.body contentType: request.contentType]; 57 | } 58 | 59 | 60 | @end 61 | 62 | 63 | int main( int argc, const char **argv ) 64 | { 65 | NSAutoreleasePool *pool = [NSAutoreleasePool new]; 66 | BLIPEchoServer *listener = [[BLIPEchoServer alloc] init]; 67 | [[NSRunLoop currentRunLoop] run]; 68 | [listener release]; 69 | [pool drain]; 70 | } 71 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/BLIP/runBLIPClient: -------------------------------------------------------------------------------- 1 | #!/bin/csh 2 | 3 | build/Debug/MYNetwork Test_BLIPConnection -Log YES -LogBLIP YES $* 4 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/BLIP/runBLIPListener: -------------------------------------------------------------------------------- 1 | #!/bin/csh 2 | 3 | build/Debug/MYNetwork Test_BLIPListener -Log YES -LogBLIP YES $* 4 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/Bonjour/MYAddressLookup.h: -------------------------------------------------------------------------------- 1 | // 2 | // MYAddressLookup.h 3 | // MYNetwork 4 | // 5 | // Created by Jens Alfke on 4/24/09. 6 | // Copyright 2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "MYDNSService.h" 10 | @class MYBonjourService; 11 | 12 | 13 | /** An asynchronous DNS address lookup. Supports both Bonjour services and traditional hostnames. */ 14 | @interface MYAddressLookup : MYDNSService 15 | { 16 | MYBonjourService *_service; 17 | NSString *_hostname; 18 | UInt16 _interfaceIndex; 19 | NSMutableSet *_addresses; 20 | UInt16 _port; 21 | CFAbsoluteTime _expires; 22 | } 23 | 24 | /** Initializes the lookup with a DNS hostname. 25 | (If you've got a Bonjour service already, as a MYBonjourService object, it's more convenient 26 | to access its addressLookup property instead of creating your own instance.) */ 27 | - (id) initWithHostname: (NSString*)hostname; 28 | 29 | @property (readonly, copy) NSString *hostname; 30 | 31 | /** The port number; this will be copied into the resulting IPAddress objects. 32 | Defaults to zero, but you can set it before calling -start. */ 33 | @property UInt16 port; 34 | 35 | /** The index of the network interface to use, or zero (the default) for any interface. 36 | You usually don't need to set this. */ 37 | @property UInt16 interfaceIndex; 38 | 39 | /** The resulting address(es) of the host, as HostAddress objects. */ 40 | @property (readonly) NSSet *addresses; 41 | 42 | /** How much longer the addresses will remain valid. 43 | If the value is zero, the addresses are no longer valid, and you should instead 44 | call -start again and wait for the 'addresses' property to update. 45 | If you set the service to continuous mode, addresses will never expire since the 46 | query will continue to update them. */ 47 | @property (readonly) NSTimeInterval timeToLive; 48 | 49 | 50 | //internal: 51 | - (id) _initWithBonjourService: (MYBonjourService*)service; 52 | - (void) _serviceGotResponse; 53 | 54 | @end 55 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/Bonjour/MYBonjourBrowser.h: -------------------------------------------------------------------------------- 1 | // 2 | // MYBonjourBrowser.h 3 | // MYNetwork 4 | // 5 | // Created by Jens Alfke on 1/22/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "MYDNSService.h" 10 | @class MYBonjourRegistration; 11 | 12 | 13 | /** Searches for Bonjour services of a specific type. */ 14 | @interface MYBonjourBrowser : MYDNSService 15 | { 16 | @private 17 | NSString *_serviceType; 18 | BOOL _browsing; 19 | Class _serviceClass; 20 | NSMutableSet *_services, *_addServices, *_rmvServices; 21 | BOOL _pendingUpdate; 22 | MYBonjourRegistration *_myRegistration; 23 | id _delegate; 24 | } 25 | 26 | /** Initializes a new MYBonjourBrowser. 27 | Call -start to begin browsing. 28 | @param serviceType The name of the service type to look for, e.g. "_http._tcp". */ 29 | - (id) initWithServiceType: (NSString*)serviceType; 30 | 31 | @property (assign) id delegate; 32 | 33 | /** Is the browser currently browsing? */ 34 | @property (readonly) BOOL browsing; 35 | 36 | /** The set of currently found services. These are instances of the serviceClass, 37 | which is MYBonjourService by default. 38 | This is KV-observable. */ 39 | @property (readonly) NSSet *services; 40 | 41 | /** The class of objects to create to represent services. 42 | The default value is [MYBonjourService class]; you can change this, but only 43 | to a subclass of that. */ 44 | @property (assign) Class serviceClass; 45 | 46 | /** My own registration for this service type. 47 | This object is created on demand and won't be started up until you tell it to. 48 | Before starting it, you'll need to set its port, and optionally its name. 49 | Your own registration will _not_ be visible in the set of services.*/ 50 | @property (readonly) MYBonjourRegistration *myRegistration; 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/Bonjour/MYBonjourQuery.h: -------------------------------------------------------------------------------- 1 | // 2 | // MYBonjourQuery.h 3 | // MYNetwork 4 | // 5 | // Created by Jens Alfke on 4/24/09. 6 | // Copyright 2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "MYDNSService.h" 10 | @class MYBonjourService; 11 | 12 | 13 | /** A query for a particular DNS record (TXT, NULL, etc.) of a Bonjour service. 14 | This class is used internally by MYBonjourService to track the TXT record; 15 | you won't need to use it directly, unless you're interested in the contents of some other 16 | record (such as the NULL record that iChat's _presence._tcp service uses for buddy icons.) */ 17 | @interface MYBonjourQuery : MYDNSService 18 | { 19 | @private 20 | MYBonjourService *_bonjourService; 21 | uint16_t _recordType; 22 | NSData *_recordData; 23 | } 24 | 25 | /** Initializes a query for a particular service and record type. 26 | @param service The Bonjour service to query 27 | @param recordType The DNS record type, e.g. kDNSServiceType_TXT; see the enum in . */ 28 | - (id) initWithBonjourService: (MYBonjourService*)service 29 | recordType: (uint16_t)recordType; 30 | 31 | /** The data of the DNS record, once it's been found. 32 | This property is KV-observable. */ 33 | @property (readonly,copy) NSData *recordData; 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/MYNetwork.xcodeproj/TemplateIcon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/blip/MYNetwork/MYNetwork.xcodeproj/TemplateIcon.icns -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/Python/BLIPListenerTest.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # encoding: utf-8 3 | """ 4 | BLIPListenerTest.py 5 | 6 | Created by Jens Alfke on 2008-06-04. 7 | This source file is test/example code, and is in the public domain. 8 | """ 9 | 10 | from BLIP import Listener 11 | 12 | import asyncore 13 | import logging 14 | import unittest 15 | 16 | 17 | class BLIPListenerTest(unittest.TestCase): 18 | 19 | def testListener(self): 20 | def handleRequest(request): 21 | logging.info("Got request!: %r",request) 22 | body = request.body 23 | assert len(body)<32768 24 | assert request.contentType == 'application/octet-stream' 25 | assert int(request['Size']) == len(body) 26 | assert request['User-Agent'] != None 27 | for i in xrange(0,len(request.body)): 28 | assert ord(body[i]) == i%256 29 | 30 | response = request.response 31 | response.body = request.body 32 | response['Content-Type'] = request.contentType 33 | response.send() 34 | 35 | listener = Listener(46353) 36 | listener.onRequest = handleRequest 37 | logging.info("Listener is waiting...") 38 | 39 | try: 40 | asyncore.loop() 41 | except KeyboardInterrupt: 42 | logging.info("KeyboardInterrupt") 43 | 44 | if __name__ == '__main__': 45 | logging.basicConfig(level=logging.INFO) 46 | unittest.main() 47 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/TCP/TCPEndpoint+Certs.m: -------------------------------------------------------------------------------- 1 | // 2 | // TCPEndpoint+Certs.m 3 | // MYNetwork-iPhone 4 | // 5 | // Created by Jens Alfke on 5/21/09. 6 | // Copyright 2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "TCPEndpoint.h" 10 | #import "CollectionUtils.h" 11 | #import 12 | 13 | 14 | /** These are some optional category methods for TCPEndpoint for dumping info about certificates. 15 | They're useful if you're working with SSL connections, but they do link against the Security 16 | framework, so they're moved into this extra file that you can choose to compile into your 17 | project or not. 18 | */ 19 | @implementation TCPEndpoint (Certificates) 20 | 21 | 22 | + (NSString*) describeCert: (SecCertificateRef)cert { 23 | if (!cert) 24 | return @"(null)"; 25 | NSString *desc; 26 | #if TARGET_OS_IPHONE && !defined(__SEC_TYPES__) 27 | CFStringRef summary = NULL; 28 | SecCertificateCopySubjectSummary(cert); 29 | desc = $sprintf(@"Certificate[%@]", summary); 30 | if(summary) CFRelease(summary); 31 | #else 32 | CFStringRef name=NULL; 33 | CFArrayRef emails=NULL; 34 | SecCertificateCopyCommonName(cert, &name); 35 | SecCertificateCopyEmailAddresses(cert, &emails); 36 | desc = $sprintf(@"Certificate[\"%@\", <%@>]", 37 | name, [(NSArray*)emails componentsJoinedByString: @">, <"]); 38 | if(name) CFRelease(name); 39 | if(emails) CFRelease(emails); 40 | #endif 41 | return desc; 42 | } 43 | 44 | + (NSString*) describeIdentity: (SecIdentityRef)identity { 45 | if (!identity) 46 | return @"(null)"; 47 | SecCertificateRef cert; 48 | SecIdentityCopyCertificate(identity, &cert); 49 | return $sprintf(@"Identity[%@]", [self describeCert: cert]); 50 | } 51 | 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/TCP/TCPWriter.h: -------------------------------------------------------------------------------- 1 | // 2 | // TCPWriter.h 3 | // MYNetwork 4 | // 5 | // Created by Jens Alfke on 5/10/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "TCPStream.h" 10 | 11 | 12 | /** Output stream for a TCPConnection. Writes a queue of arbitrary data blobs to the socket. */ 13 | @interface TCPWriter : TCPStream 14 | { 15 | NSMutableArray *_queue; 16 | NSData *_currentData; 17 | SInt32 _currentDataPos; 18 | } 19 | 20 | /** The connection's TCPReader. */ 21 | @property (readonly) TCPReader *reader; 22 | 23 | /** Schedules data to be written to the socket. 24 | Always returns immediately; the bytes won't actually be sent until there's room. */ 25 | - (void) writeData: (NSData*)data; 26 | 27 | //protected: 28 | 29 | /** Will be called when the internal queue of data to be written is empty. 30 | Subclasses should override this and call -writeData: to refill the queue, 31 | if possible. */ 32 | - (void) queueIsEmpty; 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/TCP/TCP_Internal.h: -------------------------------------------------------------------------------- 1 | // 2 | // TCP_Internal.h 3 | // MYNetwork 4 | // 5 | // Created by Jens Alfke on 5/18/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | 10 | #import "TCPWriter.h" 11 | #import "TCPConnection.h" 12 | #import "TCPListener.h" 13 | 14 | /* Private declarations and APIs for TCP client/server implementation. */ 15 | 16 | 17 | 18 | @interface TCPConnection () 19 | - (void) _setStreamProperty: (id)value forKey: (NSString*)key; 20 | - (void) _streamOpened: (TCPStream*)stream; 21 | - (BOOL) _streamPeerCertAvailable: (TCPStream*)stream; 22 | - (void) _stream: (TCPStream*)stream gotError: (NSError*)error; 23 | - (void) _streamCanClose: (TCPStream*)stream; 24 | - (void) _streamGotEOF: (TCPStream*)stream; 25 | - (void) _streamDisconnected: (TCPStream*)stream; 26 | @end 27 | 28 | 29 | @interface TCPStream () 30 | - (void) _unclose; 31 | @end 32 | 33 | 34 | @interface TCPEndpoint () 35 | + (NSString*) describeCert: (SecCertificateRef)cert; 36 | + (NSString*) describeIdentity: (SecIdentityRef)identity; 37 | @end 38 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/iPhone/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/blip/MYNetwork/iPhone/Default.png -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/iPhone/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/blip/MYNetwork/iPhone/Icon.png -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/iPhone/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | BLIP Echo 9 | LSRequiresIPhoneOS 10 | 11 | CFBundleExecutable 12 | ${EXECUTABLE_NAME} 13 | CFBundleIconFile 14 | icon.png 15 | CFBundleIdentifier 16 | com.yourcompany.${PRODUCT_NAME:identifier} 17 | CFBundleInfoDictionaryVersion 18 | 6.0 19 | CFBundleName 20 | ${PRODUCT_NAME} 21 | CFBundlePackageType 22 | APPL 23 | CFBundleSignature 24 | ???? 25 | CFBundleVersion 26 | 1.7 27 | NSMainNibFile 28 | MainWindow 29 | 30 | 31 | -------------------------------------------------------------------------------- /vpreader/blip/MYNetwork/iPhone/MYNetwork_iPhone_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'MYNetwork-iPhone' target in the 'MYNetwork-iPhone' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/.hg_archival.txt: -------------------------------------------------------------------------------- 1 | repo: d84d25d6cdbba89cc036fee08038720ddb790133 2 | node: d6ab9f52b4d77ab280861ecf0eb2dbf1795cd743 3 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/.hgignore: -------------------------------------------------------------------------------- 1 | syntax: glob 2 | .DS_Store 3 | build 4 | Documentation 5 | Doxyfile 6 | .svn 7 | *.pbxuser 8 | *.perspectivev3 9 | *.mpkg 10 | *.framework 11 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/AudioUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // AudioUtils.h 3 | // Cloudy 4 | // 5 | // Created by Jens Alfke on 6/17/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | #define MYCoreAudioErrorDomain @"MYCoreAudioDomain" 16 | 17 | NSString* MYCAErrorString( OSStatus coreAudioError ); 18 | NSError* MYCAError( OSStatus coreAudioError, NSString *message ); 19 | 20 | #ifdef __cplusplus 21 | } 22 | #endif 23 | 24 | 25 | 26 | #define XWarnIfError(error, operation) \ 27 | do { \ 28 | OSStatus __err = error; \ 29 | if (__err) _MYWarnCAError(__err,@""operation); \ 30 | } while (0) 31 | 32 | void _MYWarnCAError( OSStatus error, NSString *operation ); 33 | 34 | #ifdef __cplusplus 35 | 36 | #define XThrowIfError(error, operation) \ 37 | do { \ 38 | OSStatus __err = error; \ 39 | if (__err) _MYThrowCAError(__err,@""operation); \ 40 | } while (0) 41 | 42 | void _MYThrowCAError( OSStatus error, NSString *operation ) throw(NSError*) __attribute__((noreturn)); 43 | 44 | #endif __cplusplus 45 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/AudioUtils.mm: -------------------------------------------------------------------------------- 1 | // 2 | // AudioUtils.mm 3 | // Cloudy 4 | // 5 | // Created by Jens Alfke on 6/17/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "AudioUtils.h" 10 | 11 | 12 | NSString* MYCAErrorString( OSStatus coreAudioError ) 13 | { 14 | if( coreAudioError >= 0x20202020 ) 15 | return NSFileTypeForHFSTypeCode(coreAudioError); 16 | else 17 | return [NSString stringWithFormat: @"%i",coreAudioError]; 18 | } 19 | 20 | NSError* MYCAError( OSStatus coreAudioError, NSString *message ) 21 | { 22 | NSString *errStr = $sprintf(@"CoreAudio error %@", MYCAErrorString(coreAudioError)); 23 | if( message ) 24 | message = [message stringByAppendingFormat: @" [%@]", errStr]; 25 | else 26 | message = errStr; 27 | NSString *domain = (coreAudioError >= 0x20202020) ?MYCoreAudioErrorDomain :NSOSStatusErrorDomain; 28 | return [NSError errorWithDomain: domain code: coreAudioError 29 | userInfo: $dict({NSLocalizedDescriptionKey, message})]; 30 | } 31 | 32 | 33 | void _MYThrowCAError( OSStatus err, NSString *operation ) throw(NSError*) 34 | { 35 | NSError *error = MYCAError(err, $sprintf(@"Error in %@", operation)); 36 | Warn(@"EXCEPTION: %@",error.localizedDescription); 37 | throw error; 38 | } 39 | 40 | void _MYWarnCAError( OSStatus err, NSString *operation ) 41 | { 42 | NSError *error = MYCAError(err, $sprintf(@"Error in %@", operation)); 43 | Warn(@"%@",error.localizedDescription); 44 | } 45 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/Base64.h: -------------------------------------------------------------------------------- 1 | // 2 | // Base64.h 3 | // MYUtilities 4 | // 5 | // Created by Jens Alfke on 1/27/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | //NOTE: Using this requires linking against /usr/lib/libcrypto.dylib. 13 | 14 | 15 | @interface NSData (MYBase64) 16 | 17 | - (NSString *)my_base64String; 18 | - (NSString *)my_base64StringWithNewlines:(BOOL)encodeWithNewlines; 19 | 20 | - (NSData *)my_decodeBase64; 21 | - (NSData *)my_decodeBase64WithNewLines:(BOOL)encodedWithNewlines; 22 | 23 | - (NSString *)my_hexString; 24 | - (NSString *)my_hexDump; 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/ConcurrentOperation.h: -------------------------------------------------------------------------------- 1 | // 2 | // ConcurrentOperation.h 3 | // MYUtilities 4 | // 5 | // Created by Jens Alfke on 2/5/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface ConcurrentOperation : NSOperation 13 | { 14 | BOOL _isExecuting, _isFinished; 15 | } 16 | 17 | - (void) finish; 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/DateUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // DateUtils.h 3 | // MYUtilities 4 | // 5 | // Created by Jens Alfke on 3/25/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #ifdef __cplusplus 12 | extern "C" { 13 | #endif 14 | 15 | 16 | /** Absolute time (since 'reference date') to NSDate. 0.0 -> nil. */ 17 | NSDate* $date( CFAbsoluteTime ); 18 | 19 | /** NSDate to absolute time (since 'reference date'). nil -> 0.0 */ 20 | CFAbsoluteTime $time( NSDate* ); 21 | 22 | 23 | NSTimeInterval TimeIntervalSinceBoot(void); 24 | 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/DictObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // DictObject.h 3 | // MYUtilities 4 | // 5 | // Created by Jens Alfke on 8/6/09. 6 | // Copyright 2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | /** A generic object whose properties are stored in an NSDictionary. 13 | You can subclass this and declare properties in the subclass without needing to implement them 14 | or make instance variables; simply note them as '@dynamic' in the @implementation. 15 | The property values will automatically be stored in the object's dictionary. */ 16 | @interface DictObject : NSObject 17 | { 18 | @private 19 | NSMutableDictionary *_dict; 20 | BOOL _mutable; 21 | } 22 | 23 | /** Creates an immutable instance with the given property values. */ 24 | - (id) initWithDictionary: (NSDictionary*)dict; 25 | 26 | /** Creates a mutable instance with the given property values (none, if dict is nil.) */ 27 | - (id) initMutableWithDictionary: (NSDictionary*)dict; 28 | 29 | /** The object's property dictionary. */ 30 | @property (readonly) NSDictionary* dictionary; 31 | 32 | /** The object's property dictionary in mutable form. 33 | Calling this will raise an exception if the object is immutable. */ 34 | @property (readonly) NSMutableDictionary* mutableDictionary; 35 | 36 | @property (readonly) BOOL isMutable; 37 | 38 | /** Makes the object immutable from now on. 39 | Any further attempt to set a property value will result in a runtime exception. */ 40 | - (void) makeImmutable; 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/ExceptionUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // ExceptionUtils.h 3 | // MYUtilities 4 | // 5 | // Created by Jens Alfke on 1/5/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // See BSD license at bottom of ExceptionUtils.m. 8 | // 9 | 10 | #import 11 | 12 | 13 | #ifdef NSAppKitVersionNumber10_4 // only enable this in a project that uses AppKit 14 | /** Edit your Info.plist to make this your app's principal class, 15 | and most exceptions will be reported via a modal alert. 16 | This includes exceptions caught by AppKit (i.e. uncaught ones from event handlers) 17 | and ones you report yourself via MYReportException and @catchAndReport. */ 18 | @interface MYExceptionReportingApplication : NSApplication 19 | @end 20 | #endif 21 | 22 | 23 | /** A useful macro to use in code where you absolutely cannot allow an exception to 24 | go uncaught because it would crash (e.g. in a C callback or at the top level of a thread.) 25 | It catches the exception but makes sure it gets reported. */ 26 | #define catchAndReport(MSG...) @catch(NSException *x) {MYReportException(x,MSG);} 27 | 28 | 29 | /** Report an exception that's being caught and consumed. 30 | Logs a warning to the console, and calls the current MYReportException target if any. */ 31 | void MYReportException( NSException *x, NSString *where, ... ); 32 | 33 | 34 | /** Sets a callback to be invoked when MYReportException is called. 35 | In a GUI app, the callback would typically call [NSApp reportException: theException]. 36 | The ExceptionReportingApplication class, below, sets this up automatically. */ 37 | void MYSetExceptionReporter( void (*reporter)(NSException*) ); 38 | 39 | 40 | @interface NSException (MYUtilities) 41 | /** Returns a textual, human-readable backtrace of the point where the exception was thrown. */ 42 | - (NSString*) my_callStack; 43 | @end 44 | 45 | 46 | BOOL IsGDBAttached( void ); 47 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/FileAlias.h: -------------------------------------------------------------------------------- 1 | // 2 | // FileAlias.h 3 | // MYUtilities 4 | // 5 | // Copyright 2008 Jens Alfke. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | 11 | /** A wrapper around an AliasHandle: a persistent reference to a file, which works 12 | even if the file is moved or renamed, or its volume unmounted. */ 13 | 14 | @interface FileAlias : NSObject 15 | { 16 | AliasHandle _alias; 17 | } 18 | 19 | - (id) initWithFilePath: (NSString*)path 20 | error: (NSError**)error; 21 | 22 | - (id) initWithFilePath: (NSString*)path 23 | relativeToPath: (NSString*)fromPath 24 | error: (NSError**)error; 25 | 26 | - (NSString*) filePath: (NSError**)error; 27 | - (NSString*) filePathRelativeToPath: (NSString*)fromPath error: (NSError**)error; 28 | 29 | - (NSArray*) findMatchesRelativeToPath: (NSString*)fromPath 30 | withRules: (unsigned)rules // rules = kARMSearch etc. 31 | error: (NSError**)error; 32 | - (NSArray*) findMatches: (NSError**)error; 33 | 34 | - (NSString*) originalPath; 35 | - (NSString*) originalFilename; 36 | - (NSString*) originalVolumeName; 37 | - (void) dump; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/FileUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // FileUtils.h 3 | // MYUtilities 4 | // 5 | // Created by Jens Alfke on 1/14/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | FOUNDATION_EXPORT OSStatus PathToFSRef( NSString *path, FSRef *outFSRef ); 13 | FOUNDATION_EXPORT OSStatus FSRefToPath( const FSRef *fsRef, NSString **outPath ); 14 | 15 | FOUNDATION_EXPORT BOOL CheckOSErr( OSStatus err, NSError **error ); 16 | 17 | FOUNDATION_EXPORT NSString* AppSupportDirectory(void); 18 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/GraphicsUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // GraphicsUtils.h 3 | // MYUtilities 4 | // 5 | // Copyright 2008 Jens Alfke. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | 11 | @interface NSImage (MYUtilities) 12 | - (NSImage*) my_shrunkToFitIn: (NSSize) maxSize; 13 | - (NSSize) my_sizeOfLargestRep; 14 | - (NSData*) my_JPEGData; 15 | - (NSData*) my_dataInFormat: (NSBitmapImageFileType)format quality: (float)quality; 16 | @end 17 | 18 | 19 | @interface NSBezierPath (MYUtilities) 20 | + (NSBezierPath*) my_bezierPathWithRoundRect: (NSRect)rect radius: (float)radius; 21 | @end 22 | 23 | 24 | NSArray* OpenWindowsWithDelegateClass( Class klass ); 25 | 26 | 27 | /** Moves/resizes r to fit inside container */ 28 | NSRect PinRect( NSRect r, NSRect container ); 29 | 30 | OSStatus LoadFontsFromBundle( NSBundle *bundle ); 31 | OSStatus LoadFontsFromPath( NSString* path ); 32 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/IChatUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // IChatUtils.h 3 | // MYUtilities 4 | // 5 | // Created by Jens Alfke on 3/3/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | @class SBApplication, ABPerson; 11 | 12 | 13 | @interface IChatUtils : NSObject 14 | 15 | + (SBApplication*) app; 16 | + (BOOL) isRunning; 17 | + (void) activate; 18 | + (NSString*) activeChatPartner; 19 | + (BOOL) sendMessage: (NSString*)msg; 20 | 21 | + (NSDictionary*) iChatInfoForOnlinePerson: (ABPerson*)abPerson; 22 | + (BOOL) isPersonOnline: (ABPerson*)abPerson; 23 | 24 | + (BOOL) sendMessage: (NSString*)msg toPerson: (ABPerson*)abPerson; 25 | + (BOOL) sendMessage: (NSString*)msg toBuddyWithScreenName: (NSString*)screenName; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/ImageAndTextCell.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | /** Subclass of NSTextFieldCell which can display text and an image simultaneously. 4 | Taken directly from Apple sample code. */ 5 | @interface ImageAndTextCell : NSTextFieldCell 6 | { 7 | @private 8 | NSImage *image; 9 | } 10 | 11 | - (void)setImage:(NSImage *)anImage; 12 | - (NSImage *)image; 13 | 14 | - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView; 15 | - (NSSize)cellSize; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/ImageAndTextCell.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/blip/MYUtilities/ImageAndTextCell.m -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/IntegerArray.h: -------------------------------------------------------------------------------- 1 | // 2 | // IntegerArray.h 3 | // Cloudy 4 | // 5 | // Created by Jens Alfke on 6/23/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface IntegerArray : NSObject { 13 | NSMutableData *_storage; 14 | SInt32 *_integers; 15 | NSUInteger _count; 16 | } 17 | 18 | - (NSUInteger)count; 19 | - (const SInt32*) allIntegers; 20 | 21 | - (SInt32) integerAtIndex: (NSUInteger)index; 22 | - (void) setInteger: (SInt32)value atIndex: (NSUInteger)index; 23 | - (void) addInteger: (SInt32)value; 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/IntegerArray.m: -------------------------------------------------------------------------------- 1 | // 2 | // IntegerArray.m 3 | // Cloudy 4 | // 5 | // Created by Jens Alfke on 6/23/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "IntegerArray.h" 10 | 11 | 12 | @implementation IntegerArray 13 | 14 | - (id) init 15 | { 16 | self = [super init]; 17 | if (self != nil) { 18 | _storage = [[NSMutableData alloc] initWithCapacity: 10*sizeof(SInt32)]; 19 | } 20 | return self; 21 | } 22 | 23 | - (void) dealloc 24 | { 25 | [_storage release]; 26 | [super dealloc]; 27 | } 28 | 29 | 30 | 31 | - (NSUInteger)count {return _count;} 32 | - (const SInt32*) allIntegers {return _integers;} 33 | 34 | - (SInt32) integerAtIndex: (NSUInteger)index 35 | { 36 | Assert(index<_count); 37 | return _integers[index]; 38 | } 39 | 40 | - (void) setInteger: (SInt32)value atIndex: (NSUInteger)index 41 | { 42 | Assert(index<_count); 43 | _integers[index] = value; 44 | } 45 | 46 | - (void) addInteger: (SInt32)value 47 | { 48 | [_storage appendBytes: &value length: sizeof(value)]; 49 | _count++; 50 | _integers = [_storage mutableBytes]; 51 | } 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/KVUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // KVUtils.h 3 | // MYUtilities 4 | // 5 | // Created by Jens Alfke on 2/25/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | enum { 13 | MYKeyValueObservingOptionOnce = 1<<31, 14 | MYKeyValueObservingOptionDelayed = 1<<30 15 | }; 16 | 17 | 18 | 19 | @interface Observance : NSObject 20 | { 21 | id _target; 22 | id _observed; 23 | NSString *_keyPath; 24 | NSKeyValueObservingOptions _options; 25 | SEL _action; 26 | } 27 | 28 | - (id) initWithTarget: (id)target 29 | action: (SEL)action 30 | observed: (id)observed 31 | keyPath: (NSString*)keyPath 32 | options: (NSKeyValueObservingOptions)options; 33 | 34 | - (void) stopObserving; 35 | 36 | @property (readonly) id observed; 37 | @property (readonly) NSString* keyPath; 38 | 39 | @end 40 | 41 | 42 | 43 | @interface Observer : NSObject 44 | { 45 | id _target; 46 | NSMutableArray *_observances; 47 | } 48 | 49 | - (id) initWithTarget: (id)target; 50 | 51 | @property (readonly) id target; 52 | 53 | - (void) observe: (id)observed 54 | keyPath: (NSString*)keyPath 55 | options: (NSKeyValueObservingOptions)options 56 | action: (SEL)action; 57 | 58 | - (void) observe: (id)observed 59 | keyPath: (NSString*)keyPath 60 | action: (SEL)action; 61 | 62 | /** observed or keyPath may be nil, meaning wildcard */ 63 | - (void) stopObserving: (id)observedOrNil keyPath: (NSString*)keyPathOrNil; 64 | - (void) stopObserving: (id)observed; 65 | - (void) stopObserving; 66 | 67 | @end 68 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYAddressField.h: -------------------------------------------------------------------------------- 1 | // 2 | // MYAddressField.h 3 | // YourMove 4 | // 5 | // Created by Jens Alfke on 7/16/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | @class MYAddressItem, ABPerson; 11 | 12 | 13 | @interface MYAddressField : NSComboBox 14 | { 15 | NSString *_property, *_prefix; 16 | NSMutableArray *_addresses; 17 | NSArray *_defaultAddresses; 18 | MYAddressItem *_selectedAddress; 19 | } 20 | 21 | @property (getter=isExpanded) BOOL expanded; 22 | 23 | @property (copy) NSString *addressProperty; 24 | @property (copy) NSArray *defaultAddresses; 25 | 26 | @property (readonly,retain) MYAddressItem* selectedAddress; 27 | 28 | @end 29 | 30 | 31 | 32 | @interface MYAddressItem : NSObject 33 | { 34 | NSString *_name, *_addressType, *_address, *_uuid; 35 | } 36 | - (id) initWithName: (NSString*)name 37 | addressType: (NSString*)addressType address: (NSString*)address; 38 | - (id) initWithPerson: (ABPerson*)person 39 | addressType: (NSString*)addressType address: (NSString*)address; 40 | - (id) initWithString: (NSString*)str addressType: (NSString*)addressType; 41 | @property (readonly) NSString *name, *addressType, *address; 42 | @property (readonly) ABPerson *person; 43 | @end -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYAnimatingSplitView.h: -------------------------------------------------------------------------------- 1 | // 2 | // MYAnimatingSplitView.h 3 | // Cloudy 4 | // 5 | // Created by Jens Alfke on 7/10/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface MYAnimatingSplitView : NSSplitView 13 | { 14 | NSTimeInterval _animationTime; 15 | BOOL _isLiveResizing; 16 | } 17 | 18 | 19 | /** The maximum time it will take to animate the divider. (Actual time depends on distance moved.) */ 20 | @property NSTimeInterval animationTime; 21 | 22 | /** Pixel position of the divider (in the splitview's bounds' coordinate system.) 23 | Setting this property animates the divider to the new position. */ 24 | @property float dividerPosition; 25 | 26 | /** Position of the divider, scaled to the range [0..1]. */ 27 | @property float dividerFractionalPosition; 28 | 29 | - (void) collapseSubviewAtIndex: (int)index; 30 | - (void) collapseSubviewAtIndex: (int)index animate: (BOOL)animate; 31 | 32 | /** Returns YES while the splitview itself is being resized (i.e. while the window 33 | is resizing, or a parent splitview is moving its divider.) */ 34 | @property (readonly) BOOL isLiveResizing; 35 | 36 | @end 37 | 38 | 39 | @protocol MYAnimatingSplitViewDelegate 40 | /** If the delegate implements this method, it will be called when the splitview 41 | begins and ends live resizing. */ 42 | - (void)splitView: (NSSplitView*)splitView inLiveResize: (BOOL)inLiveResize; 43 | @end 44 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYDirectoryWatcher.h: -------------------------------------------------------------------------------- 1 | // 2 | // MYDirectoryWatcher.h 3 | // Murky 4 | // 5 | // Copyright 2008 Jens Alfke. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | 11 | /* A wrapper for FSEvents, which notifies its delegate when filesystem changes occur. */ 12 | @interface MYDirectoryWatcher : NSObject 13 | { 14 | NSString *_path, *_standardizedPath; 15 | id _target; 16 | SEL _action; 17 | UInt64 _lastEventID; 18 | BOOL _historyDone; 19 | CFTimeInterval _latency; 20 | NSMutableSet* _modes; 21 | FSEventStreamRef _stream; 22 | } 23 | 24 | - (id) initWithDirectory: (NSString*)path target: (id)target action: (SEL)action; 25 | 26 | @property (readonly,nonatomic) NSString* path; 27 | 28 | @property (nonatomic) UInt64 lastEventID; 29 | @property (nonatomic) CFTimeInterval latency; 30 | @property (retain, nonatomic) NSMutableSet* runLoopModes; 31 | 32 | - (BOOL) start; 33 | - (void) pause; 34 | - (void) stop; 35 | - (void) stopTemporarily; // stop, but re-start on next runloop cycle 36 | 37 | @end 38 | 39 | 40 | 41 | @interface MYDirectoryEvent : NSObject 42 | { 43 | MYDirectoryWatcher *watcher; 44 | NSString *path; 45 | UInt64 eventID; 46 | UInt32 flags; 47 | } 48 | 49 | @property (readonly, nonatomic) MYDirectoryWatcher *watcher; 50 | @property (readonly, nonatomic) NSString *path, *relativePath; 51 | @property (readonly, nonatomic) UInt64 eventID; 52 | @property (readonly, nonatomic) UInt32 flags; 53 | 54 | @property (readonly, nonatomic) BOOL mustScanSubdirectories; 55 | @property (readonly, nonatomic) BOOL eventsWereDropped; 56 | @property (readonly, nonatomic) BOOL isHistorical; 57 | @property (readonly, nonatomic) BOOL rootChanged; 58 | 59 | @end 60 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYTableView.h: -------------------------------------------------------------------------------- 1 | // 2 | // MYTableView.h 3 | // FeedMe 4 | // 5 | // Created by Jens Alfke on 11/3/09. 6 | // Copyright 2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSTableView (MYUtilities) 13 | 14 | - (void) my_selectRow: (NSInteger)row; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYTableView.m: -------------------------------------------------------------------------------- 1 | // 2 | // MYTableView.m 3 | // FeedMe 4 | // 5 | // Created by Jens Alfke on 11/3/09. 6 | // Copyright 2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "MYTableView.h" 10 | 11 | 12 | @implementation NSTableView (MYUtilities) 13 | 14 | - (void) my_selectRow: (NSInteger)row { 15 | NSIndexSet *indexes = [[NSIndexSet alloc] initWithIndex: row]; 16 | [self selectRowIndexes: indexes byExtendingSelection: NO]; 17 | [indexes release]; 18 | } 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYURLFormatter.h: -------------------------------------------------------------------------------- 1 | // 2 | // URLFormatter.h 3 | // Murky 4 | // 5 | // Copyright 2008 Jens Alfke. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | 11 | /** An NSURLFormatter for text fields that let the user enter URLs. 12 | The associated text field's objectValue will be an NSURL object. */ 13 | @interface MYURLFormatter : NSFormatter 14 | { 15 | NSArray *_allowedSchemes; 16 | } 17 | 18 | @property (copy,nonatomic) NSArray *allowedSchemes; 19 | 20 | + (void) beginFilePickerFor: (NSTextField*)field; 21 | + (void) beginNewFilePickerFor: (NSTextField*)field; 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYUtilities.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // MYUtilities.xcconfig 3 | // MYUtilities 4 | // 5 | // Created by Jens Alfke on 6/27/08. 6 | // Copyright 2008-2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | 10 | // Precompiled Headers: 11 | GCC_INCREASE_PRECOMPILED_HEADER_SHARING = YES 12 | GCC_PRECOMPILE_PREFIX_HEADER = YES 13 | 14 | // Language: 15 | GCC_C_LANGUAGE_STANDARD = gnu99 16 | OTHER_CFLAGS = -fnested-functions -Wmissing-declarations 17 | OTHER_CPLUSPLUSFLAGS = 18 | 19 | // Warnings: 20 | GCC_TREAT_WARNINGS_AS_ERRORS = YES 21 | GCC_WARN_ABOUT_RETURN_TYPE = YES 22 | GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES 23 | GCC_WARN_UNUSED_VARIABLE = YES 24 | GCC_WARN_SIGN_COMPARE = YES 25 | WARNING_CFLAGS = -Wall -Wformat-security -Wshorten-64-to-32 26 | 27 | // Code generation: 28 | GCC_INLINES_ARE_PRIVATE_EXTERN = YES 29 | GCC_SYMBOLS_PRIVATE_EXTERN = YES 30 | GCC_ENABLE_OBJC_GC = unsupported 31 | GCC_DYNAMIC_NO_PIC = YES 32 | GCC_MODEL_TUNING = G5 33 | PREBINDING = NO 34 | DEBUG_INFORMATION_FORMAT = dwarf 35 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYUtilitiesTest_main.m: -------------------------------------------------------------------------------- 1 | // 2 | // MYUtilitiesTest_main.m 3 | // MYNetwork 4 | // 5 | // Created by Jens Alfke on 5/21/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | 10 | #import "Test.h" 11 | 12 | 13 | int main(int argc, const char *argv[]) 14 | { 15 | RunTestCases(argc,argv); 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYUtilities_Debug.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // MYUtilities_Debug.xcconfig 3 | // MYUtilities 4 | // 5 | // Created by Jens Alfke on 6/27/08. 6 | // Copyright 2008-2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #include "MYUtilities.xcconfig" 10 | 11 | GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1 12 | 13 | GCC_OPTIMIZATION_LEVEL = 0 14 | 15 | COPY_PHASE_STRIP = NO 16 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYUtilities_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for clients of MYUtilities. 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import "Logging.h" 8 | #import "Test.h" 9 | #import "CollectionUtils.h" 10 | #endif 11 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYUtilities_Release.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // MYUtilities_Release.xcconfig 3 | // MYUtilities 4 | // 5 | // Created by Jens Alfke on 6/27/08. 6 | // Copyright 2008-2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #include "MYUtilities.xcconfig" 10 | 11 | 12 | GCC_OPTIMIZATION_LEVEL = s 13 | 14 | DEAD_CODE_STRIPPING = YES 15 | DEBUG_INFORMATION_FORMAT = dwarf-with-dsym 16 | 17 | GCC_WARN_UNINITIALIZED_AUTOS = YES 18 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYWindowUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // MYWindowUtils.h 3 | // Murky 4 | // 5 | // Created by Jens Alfke on 5/5/09. 6 | // Copyright 2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSWindow (MYUtilities) 13 | 14 | - (void) my_setTitleBarIcon: (NSImage*)icon; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYWindowUtils.m: -------------------------------------------------------------------------------- 1 | // 2 | // MYWindowUtils.m 3 | // Murky 4 | // 5 | // Created by Jens Alfke on 5/5/09. 6 | // Copyright 2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "MYWindowUtils.h" 10 | 11 | 12 | @implementation NSWindow (MYUtilities) 13 | 14 | 15 | - (void) my_setTitleBarIcon: (NSImage*)icon 16 | { 17 | NSURL *url = nil; 18 | if( icon ) { 19 | icon = [[icon copy] autorelease]; 20 | [icon setSize: NSMakeSize(16,16)]; 21 | url = [NSURL fileURLWithPath: @"/System/XXX"]; 22 | } 23 | [self setRepresentedURL: url]; 24 | [[self standardWindowButton:NSWindowDocumentIconButton] setImage: icon]; 25 | } 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYXMLUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // MYXMLUtils.h 3 | // FeedMe 4 | // 5 | // Created by Jens Alfke on 11/3/09. 6 | // Copyright 2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSXMLElement (MYUtilities) 12 | 13 | /* Follow an XPath, returning the result as a single string. 14 | If multiple nodes match, only the text of the first one is returned. */ 15 | - (NSString*) my_stringAtXPath: (NSString*) xpath error: (NSError**)error; 16 | 17 | /* Follow an XPath, returning the result as a single URL. */ 18 | - (NSURL*) my_URLAtXPath: (NSString*) xpath error: (NSError**)error; 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MYXMLUtils.m: -------------------------------------------------------------------------------- 1 | // 2 | // MYXMLUtils.m 3 | // FeedMe 4 | // 5 | // Created by Jens Alfke on 11/3/09. 6 | // Copyright 2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "MYXMLUtils.h" 10 | 11 | #import "Logging.h" 12 | 13 | 14 | @implementation NSXMLElement (MYUtilities) 15 | 16 | 17 | /* Follow an XPath, returning the result as a single string */ 18 | - (NSString*) my_stringAtXPath: (NSString*) xpath error: (NSError**)error 19 | { 20 | NSArray *nodes = [self nodesForXPath: xpath error: error]; 21 | if (!nodes) { 22 | // Can't avoid QName errors so don't report them 23 | if (!error || [[*error description] rangeOfString: @"can't resolve QName for"].length==0) 24 | Warn(@"XPath error for '%@': %@", xpath, (error ?*error :nil)); 25 | return nil; 26 | } 27 | if( [nodes count] == 0 ) { 28 | if (error) *error = nil; 29 | return nil; 30 | } 31 | if( [nodes count] > 1 ) 32 | Warn(@"stringAtXPath: Got %u results for '%@'", [nodes count],xpath); 33 | return [[nodes objectAtIndex: 0] stringValue]; 34 | } 35 | 36 | 37 | /* Follow an XPath, returning the result as a single URL */ 38 | - (NSURL*) my_URLAtXPath: (NSString*) xpath error: (NSError**)error 39 | { 40 | NSString *str = [self my_stringAtXPath: xpath error: error]; 41 | if( ! str ) 42 | return nil; 43 | NSURL *url = [NSURL URLWithString: str]; 44 | if( ! url ) { 45 | Warn(@"Invalid URL <%@> for '%@'",str,xpath); 46 | if (error) *error = nil; 47 | } 48 | return url; 49 | } 50 | 51 | 52 | @end 53 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MailUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // MailUtils.h 3 | // YourMove 4 | // 5 | // Created by Jens Alfke on 7/13/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | @class MailOutgoingMessage; 11 | 12 | 13 | @interface OutgoingEmail : NSObject 14 | { 15 | NSString *_subject, *_body, *_sender; 16 | NSMutableArray *_toRecipients, *_attachments; 17 | MailOutgoingMessage *_message; 18 | } 19 | 20 | + (BOOL) isMailRunning; 21 | 22 | - (id) init; 23 | - (id) initWithSubject: (NSString*)subject body: (NSString*)body; 24 | 25 | @property (copy) NSString *subject, *body, *sender; 26 | @property (retain) NSMutableArray *toRecipients, *attachments; 27 | 28 | - (void) show; 29 | - (void) send; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/MurmurHash.h: -------------------------------------------------------------------------------- 1 | /* 2 | * MurmurHash.h 3 | * MYUtilities 4 | * 5 | * This file created by Jens Alfke on 3/17/08. 6 | * Algorithm & source code by Austin Appleby, released to public domain. 7 | * 8 | * 9 | */ 10 | 11 | #include 12 | #include 13 | 14 | /** An extremely efficient general-purpose hash function. 15 | Murmurhash is claimed to be more than twice as fast as the nearest competitor, 16 | and to offer better-distributed output with fewer collisions. 17 | It is, however not suitable for cryptographic use. 18 | Hash values will differ between bit- and little-endian CPUs, so they shouldn't 19 | be stored persistently or transmitted over the network. 20 | 21 | Written by Austin Appleby: */ 22 | 23 | uint32_t MurmurHash2 ( const void * key, size_t len, uint32_t seed ); 24 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/NSData+Mnemonic.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSData+Mnemonic.h 3 | // Cloudy 4 | // 5 | // Created by Jens Alfke on 6/24/09. 6 | // Copyright 2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSData (MYMnemonic) 13 | 14 | - (NSString*) my_mnemonic; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/NSData+Mnemonic.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSData+Mnemonic.m 3 | // Cloudy 4 | // 5 | // Created by Jens Alfke on 6/24/09. 6 | // Copyright 2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "NSData+Mnemonic.h" 10 | #import "mnemonic.h" 11 | 12 | 13 | @implementation NSData (Mnemonic) 14 | 15 | - (NSString*) my_mnemonic { 16 | NSMutableData *chars = [NSMutableData dataWithLength: 10*mn_words_required(self.length)]; 17 | if (!chars) 18 | return nil; 19 | int result = mn_encode((void*)self.bytes, self.length, 20 | chars.mutableBytes, chars.length, 21 | MN_FDEFAULT); 22 | if (result != 0) { 23 | Warn(@"Mnemonic encoder failed: err=%i",result); 24 | return nil; 25 | } 26 | return [[[NSString alloc] initWithUTF8String: chars.mutableBytes] autorelease]; 27 | } 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/NSData+gzip.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSData+gzip.h 3 | // Cloudy 4 | // 5 | // Created by Jens Alfke on 6/27/09. 6 | // Copyright 2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSData (GZip) 13 | 14 | - (NSData*) my_gzippedWithCompression: (int)compression; 15 | - (NSData*) my_gunzipped; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/NSData+gzip.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSData+gzip.m 3 | // Cloudy 4 | // 5 | // Created by Jens Alfke on 6/27/09. 6 | // Copyright 2009 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import "NSData+gzip.h" 10 | #import "GTMNSData+zlib.h" 11 | 12 | @implementation NSData (gzip) 13 | 14 | - (NSData*) my_gzippedWithCompression: (int)compression { 15 | return [NSData gtm_dataByGzippingBytes: self.bytes 16 | length: self.length 17 | compressionLevel: compression]; 18 | } 19 | 20 | - (NSData*) my_gunzipped { 21 | return [NSData gtm_dataByInflatingBytes: self.bytes length: self.length]; 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/Target.h: -------------------------------------------------------------------------------- 1 | // 2 | // Target.h 3 | // MYUtilities 4 | // 5 | // Created by Jens Alfke on 2/11/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface MYTarget : NSObject 13 | { 14 | id _invocations; // May be an NSInvocation, or an NSMutableArray of them 15 | } 16 | 17 | + (MYTarget*) targetWithReceiver: (id)receiver action: (SEL)action; 18 | 19 | - (void) addTarget: (MYTarget*)target; 20 | 21 | - (id) invokeWithSender: (id)sender; 22 | 23 | @end 24 | 25 | 26 | #define $target(RCVR,METHOD) [MYTarget targetWithReceiver: (RCVR) action: @selector(METHOD)] 27 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/TimeIntervalFormatter.h: -------------------------------------------------------------------------------- 1 | // 2 | // TimeIntervalFormatter.h 3 | // MYUtilities 4 | // 5 | // Copyright 2008 Jens Alfke. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | 11 | @interface TimeIntervalFormatter : NSFormatter 12 | { 13 | BOOL _showsMinutes, _showsFractionalSeconds; 14 | } 15 | 16 | - (void) setShowsMinutes: (BOOL)showsMinutes; 17 | - (void) setShowsFractionalSeconds: (BOOL)showsFractionalSeconds; 18 | 19 | + (NSString*) formatTimeInterval: (NSTimeInterval)interval; 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/URLUtils.h: -------------------------------------------------------------------------------- 1 | // 2 | // URLUtils.h 3 | // MYUtilities 4 | // 5 | // Created by Jens Alfke on 4/28/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface NSURL (MYUtilities) 13 | 14 | /** Smart/lenient version of +URLWithString:, for use with user-entered URLs. 15 | - Strips out any whitespace or newlines 16 | - Removes surrounding "<...>" 17 | - Adds a default scheme like http: if necessary, if one is provided 18 | - Checks against a list of allowed schemes, if one is provided */ 19 | + (NSURL*) my_URLWithLenientString: (NSString*)string 20 | defaultScheme: (NSString*)defaultScheme 21 | allowedSchemes: (NSArray*)allowedSchemes; 22 | @end 23 | 24 | 25 | @interface NSHTTPURLResponse (MYUtilities) 26 | 27 | - (NSError*) HTTPError; 28 | 29 | @end 30 | 31 | extern NSString* const MyHTTPErrorDomain; 32 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/UniqueWindowController.h: -------------------------------------------------------------------------------- 1 | // 2 | // UniqueWindowController.h 3 | // MYUtilities 4 | // 5 | // Created by Jens Alfke on 3/14/08. 6 | // Copyright 2008 Jens Alfke. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface UniqueWindowController : NSWindowController 13 | 14 | + (UniqueWindowController*) instanceWith: (id)model; 15 | + (UniqueWindowController*) openWith: (id)model; 16 | 17 | + (BOOL) isModel: (id)model1 equalToModel: (id)model2; 18 | 19 | - (void) reopenWith: (id)model; 20 | 21 | @end 22 | 23 | 24 | @interface UniqueWindowController (Abstract) 25 | 26 | - (id) initWith: (id)model; 27 | @property (readonly) id model; 28 | 29 | @end -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/ValueArray.h: -------------------------------------------------------------------------------- 1 | // 2 | // ValueArray.h 3 | // MYUtilities 4 | // 5 | // Copyright 2008 Jens Alfke. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | 11 | @interface ValueArray : NSObject 12 | { 13 | unsigned _count; 14 | size_t _valueSize; 15 | } 16 | 17 | + (ValueArray*) valueArrayWithCount: (unsigned)count valueSize: (size_t)valueSize; 18 | 19 | - (unsigned) count; 20 | - (size_t) valueSize; 21 | - (const void*) valueAtIndex: (unsigned)i; 22 | - (void) getValue: (void*)value atIndex: (unsigned)i; 23 | - (void) setValue: (const void*)value atIndex: (unsigned)i; 24 | 25 | @end 26 | 27 | 28 | #define DeclareValueArrayOf(CAPTYPE,TYPE) \ 29 | @interface CAPTYPE##Array : ValueArray \ 30 | + (CAPTYPE##Array*) TYPE##ArrayWithCount: (unsigned)count; \ 31 | - (TYPE) TYPE##AtIndex: (unsigned)index; \ 32 | - (void) set##CAPTYPE: (TYPE)value atIndex: (unsigned)index; \ 33 | @end 34 | 35 | #define ImplementValueArrayOf(CAPTYPE,TYPE) \ 36 | @implementation CAPTYPE##Array \ 37 | + (CAPTYPE##Array*) TYPE##Array##WithCount: (unsigned)count \ 38 | {return (id)[super valueArrayWithCount: count valueSize: sizeof(TYPE)];} \ 39 | - (TYPE) TYPE##AtIndex: (unsigned)i; \ 40 | {NSParameterAssert(i<_count); return ((const TYPE*)object_getIndexedIvars(self))[i];}\ 41 | - (void) set##CAPTYPE: (TYPE)value atIndex: (unsigned)i \ 42 | {NSParameterAssert(i<_count); ((TYPE*)object_getIndexedIvars(self))[i] = value;}\ 43 | @end 44 | 45 | 46 | // Declares IntArray class 47 | DeclareValueArrayOf(Int,int) 48 | 49 | DeclareValueArrayOf(Double,double) 50 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/With.h: -------------------------------------------------------------------------------- 1 | // 2 | // With.h 3 | // MYUtilities 4 | // 5 | // Copyright 2008 Jens Alfke. All rights reserved. 6 | // 7 | 8 | #import 9 | 10 | 11 | #define WITH(OBJ) id __with=[OBJ beginWith]; @try 12 | 13 | #define ENDWITH @finally{[__with endWith];} 14 | #define CATCHWITH @catch(NSException *x){id w=__with; __with=nil; _catchWith(w,x);} @finally{[__with endWith];} 15 | 16 | void _catchWith( id with, NSException *x ); 17 | 18 | @interface NSAutoreleasePool (With) 19 | + (NSAutoreleasePool*) beginWith; 20 | - (void) endWith; 21 | @end -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/mnemonicode-0.73/Makefile: -------------------------------------------------------------------------------- 1 | sample_programs: mnencode mndecode 2 | 3 | mnencode: mnencode.o mnemonic.o mn_wordlist.o 4 | 5 | mndecode: mndecode.o mnemonic.o mn_wordlist.o 6 | 7 | mn_wordlist.o: mn_wordlist.c mnemonic.h 8 | 9 | mnemonic.o: mnemonic.c mnemonic.h 10 | 11 | clean: 12 | rm -f *.o mnencode mndecode *~ 13 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/mnemonicode-0.73/README: -------------------------------------------------------------------------------- 1 | These routines implement a method for encoding binary data into a sequence 2 | of words which can be spoken over the phone, for example, and converted 3 | back to data on the other side. 4 | 5 | For more information see http://www.tothink.com/mnemonic 6 | 7 | mnemonic.h Header file 8 | mnemonic.c Encoding/decoding and associated routines 9 | mn_wordlist.c The word list itself 10 | mnencode.c Sample program - encode data from stdin to stdout 11 | mndecode.c Sample program - decode data from stdin to stdout 12 | 13 | Oren Tirosh 14 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/mnemonicode-0.73/TODO: -------------------------------------------------------------------------------- 1 | Improve the wordlist 2 | 3 | I am looking for comments on the wordlist from you. Yes, you :-) 4 | 5 | Soundalike matching 6 | 7 | I have given up on standard soundex techniques for this purpose. 8 | I am working on an ad-hoc solution which is more-or-less tailored to 9 | this specific list. 10 | 11 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/mnemonicode-0.73/mndecode.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "mnemonic.h" 3 | 4 | main () 5 | { 6 | char buf[0x90000]; 7 | mn_byte outbuf[0x10000]; 8 | int buflen; 9 | int n; 10 | 11 | buflen = fread (buf, 1, sizeof buf - 1, stdin); 12 | buf[buflen] = 0; 13 | 14 | n = mn_decode (buf, outbuf, sizeof outbuf); 15 | if (n < 0) 16 | fprintf (stderr, "mn_decode result %d\n", n); 17 | else 18 | fwrite (outbuf, 1, n, stdout); 19 | 20 | return 0; 21 | } 22 | -------------------------------------------------------------------------------- /vpreader/blip/MYUtilities/mnemonicode-0.73/mnencode.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "mnemonic.h" 3 | 4 | main () 5 | { 6 | mn_byte buf[0x10000]; 7 | char outbuf[0x90000]; 8 | int buflen; 9 | int n; 10 | 11 | fprintf (stderr, "%s\n", mn_wordlist_version); 12 | 13 | buflen = fread (buf, 1, sizeof (buf), stdin); 14 | n = mn_encode (buf, buflen, outbuf, sizeof outbuf, MN_F64BITSPERLINE); 15 | if (n == 0) 16 | fwrite (outbuf, 1, strlen (outbuf), stdout); 17 | else 18 | fprintf (stderr, "mn_encode error %d\n", n); 19 | putchar ('\n'); 20 | 21 | return 0; 22 | } 23 | -------------------------------------------------------------------------------- /vpreader/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // vpreader 4 | // 5 | // Created by August Mueller on 1/9/09. 6 | // Copyright Flying Meat Inc 2009. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) { 12 | 13 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 14 | int retVal = UIApplicationMain(argc, argv, nil, nil); 15 | [pool release]; 16 | return retVal; 17 | } 18 | -------------------------------------------------------------------------------- /vpreader/res/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/Default.png -------------------------------------------------------------------------------- /vpreader/res/VPRScreenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/VPRScreenshot.png -------------------------------------------------------------------------------- /vpreader/res/VPRScreenshot.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/VPRScreenshot.tiff -------------------------------------------------------------------------------- /vpreader/res/VPReader.acorn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/VPReader.acorn -------------------------------------------------------------------------------- /vpreader/res/VPReader.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/VPReader.png -------------------------------------------------------------------------------- /vpreader/res/VPReaderStoreIcon.tiff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/VPReaderStoreIcon.tiff -------------------------------------------------------------------------------- /vpreader/res/buttons.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/buttons.ai -------------------------------------------------------------------------------- /vpreader/res/doclist.acorn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/doclist.acorn -------------------------------------------------------------------------------- /vpreader/res/doclist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/doclist.png -------------------------------------------------------------------------------- /vpreader/res/homebutton.acorn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/homebutton.acorn -------------------------------------------------------------------------------- /vpreader/res/homebutton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/homebutton.png -------------------------------------------------------------------------------- /vpreader/res/leftbutton.acorn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/leftbutton.acorn -------------------------------------------------------------------------------- /vpreader/res/leftbutton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/leftbutton.png -------------------------------------------------------------------------------- /vpreader/res/rightbutton.acorn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/rightbutton.acorn -------------------------------------------------------------------------------- /vpreader/res/rightbutton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ccgus/flycode/a8b97ca99bcf6f109962c4547f38e179f17e44ef/vpreader/res/rightbutton.png -------------------------------------------------------------------------------- /vpreader/vpreader_Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'vpreader' target in the 'vpreader' project 3 | // 4 | 5 | #ifdef __OBJC__ 6 | #import 7 | #import 8 | #endif 9 | 10 | #define DEBUG 1 11 | 12 | #ifdef DEBUG 13 | #define debug(...) NSLog(__VA_ARGS__) 14 | #else 15 | #define debug(...) 16 | #endif 17 | 18 | --------------------------------------------------------------------------------