Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit ed23991c643cfb2198b577bf55ebf65ce143eba2 @mugginsoft committed Jan 26, 2012
Showing with 90,426 additions and 0 deletions.
  1. +19 −0 .gitignore
  2. +1,286 −0 Port Map.xcodeproj/project.pbxproj
  3. +18 −0 RSVerticallyCenteredTextFieldCell/MIT-License.rtf
  4. +17 −0 RSVerticallyCenteredTextFieldCell/RSVerticallyCenteredTextFieldCell.h
  5. +56 −0 RSVerticallyCenteredTextFieldCell/RSVerticallyCenteredTextFieldCell.m
  6. +30 −0 createZip.sh
  7. +71,127 −0 framework/Ethernet-OUI.txt
  8. +36 −0 framework/IXSCNotificationManager.h
  9. +64 −0 framework/IXSCNotificationManager.m
  10. +13 −0 framework/NSNotificationCenterThreadingAdditions.h
  11. +38 −0 framework/NSNotificationCenterThreadingAdditions.m
  12. BIN framework/OUItoCompany.plist
  13. +42 −0 framework/TCMNATPMPPortMapper.h
  14. +541 −0 framework/TCMNATPMPPortMapper.m
  15. +22 −0 framework/TCMPortMapper-Info.plist
  16. +131 −0 framework/TCMPortMapper.h
  17. +776 −0 framework/TCMPortMapper.m
  18. +7 −0 framework/TCMPortMapper_prefix.pch
  19. +39 −0 framework/TCMUPNPPortMapper.h
  20. +508 −0 framework/TCMUPNPPortMapper.m
  21. +15 −0 framework/libnatpmp-20071213/Changelog.txt
  22. +50 −0 framework/libnatpmp-20071213/Makefile
  23. +117 −0 framework/libnatpmp-20071213/getgateway.c
  24. +25 −0 framework/libnatpmp-20071213/getgateway.h
  25. +249 −0 framework/libnatpmp-20071213/natpmp.c
  26. +174 −0 framework/libnatpmp-20071213/natpmp.h
  27. +95 −0 framework/libnatpmp-20071213/natpmpc.c
  28. +32 −0 framework/libnatpmp-20071213/testgetgateway.c
  29. +41 −0 framework/miniupnp_modeldescription.patch
  30. +181 −0 framework/miniupnpc/Changelog.txt
  31. +26 −0 framework/miniupnpc/LICENCE
  32. +117 −0 framework/miniupnpc/Makefile
  33. +40 −0 framework/miniupnpc/Makefile.mingw
  34. +52 −0 framework/miniupnpc/README
  35. +531 −0 framework/miniupnpc/bsdqueue.h
  36. +15 −0 framework/miniupnpc/declspec.h
  37. +121 −0 framework/miniupnpc/igd_desc_parse.c
  38. +39 −0 framework/miniupnpc/igd_desc_parse.h
  39. +47 −0 framework/miniupnpc/man3/miniupnpc.3
  40. +5 −0 framework/miniupnpc/mingw32make.bat
  41. +99 −0 framework/miniupnpc/minisoap.c
  42. +15 −0 framework/miniupnpc/minisoap.h
  43. +107 −0 framework/miniupnpc/minissdpc.c
  44. +15 −0 framework/miniupnpc/minissdpc.h
  45. +733 −0 framework/miniupnpc/miniupnpc.c
  46. +108 −0 framework/miniupnpc/miniupnpc.h
  47. +413 −0 framework/miniupnpc/miniupnpcmodule.c
  48. +219 −0 framework/miniupnpc/miniwget.c
  49. +28 −0 framework/miniupnpc/miniwget.h
  50. +191 −0 framework/miniupnpc/minixml.c
  51. +37 −0 framework/miniupnpc/minixml.h
  52. +149 −0 framework/miniupnpc/minixmlvalid.c
  53. +50 −0 framework/miniupnpc/pymoduletest.py
  54. +15 −0 framework/miniupnpc/setup.py
  55. +15 −0 framework/miniupnpc/setupmingw32.py
  56. +88 −0 framework/miniupnpc/testminixml.c
  57. +42 −0 framework/miniupnpc/testupnpreplyparse.c
  58. +373 −0 framework/miniupnpc/upnpc.c
  59. +542 −0 framework/miniupnpc/upnpcommands.c
  60. +152 −0 framework/miniupnpc/upnpcommands.h
  61. +55 −0 framework/miniupnpc/upnperrors.c
  62. +16 −0 framework/miniupnpc/upnperrors.h
  63. +125 −0 framework/miniupnpc/upnpreplyparse.c
  64. +60 −0 framework/miniupnpc/upnpreplyparse.h
  65. BIN general_artwork/DotGreen.png
  66. BIN general_artwork/DotRed.png
  67. BIN general_artwork/DotYellow.png
  68. BIN general_artwork/PortMapIcon.acorn
  69. BIN libcrypto.0.9.7.dylib
  70. BIN libcrypto.0.9.dylib
  71. +1 −0 libcrypto.dylib
  72. +29 −0 natecho/AppController.h
  73. +134 −0 natecho/AppController.m
  74. +2,787 −0 natecho/English.lproj/MainMenu.nib/designable.nib
  75. BIN natecho/English.lproj/MainMenu.nib/keyedobjects.nib
  76. +24 −0 natecho/NATEcho-Info.plist
  77. +98 −0 natecho/TCPServer.h
  78. +264 −0 natecho/TCPServer.m
  79. +13 −0 natecho/main.m
  80. +7 −0 natecho/natecho_prefix.pch
  81. +68 −0 portmap/AppController.h
  82. +293 −0 portmap/AppController.m
  83. BIN portmap/English.lproj/InfoPlist.strings
  84. +5,951 −0 portmap/English.lproj/MainMenu.nib/designable.nib
  85. BIN portmap/English.lproj/MainMenu.nib/keyedobjects.nib
  86. +32 −0 portmap/Info.plist
  87. +7 −0 portmap/PortMapper_Prefix.pch
  88. +78 −0 portmap/Presets.plist
  89. +17 −0 portmap/TCMPortMappingAdditions.h
  90. +22 −0 portmap/TCMPortMappingAdditions.m
  91. +23 −0 portmap/TCMPortStringFromPublicPortValueTransformer.h
  92. +49 −0 portmap/TCMPortStringFromPublicPortValueTransformer.m
  93. +16 −0 portmap/TCMStatusImageFromMappingStatusValueTransformer.h
  94. +21 −0 portmap/TCMStatusImageFromMappingStatusValueTransformer.m
  95. BIN portmap/artwork/GenericQuestionMarkIcon.icns
  96. BIN portmap/artwork/NSAddTemplate.tiff
  97. BIN portmap/artwork/NSRefreshTemplate.tiff
  98. BIN portmap/artwork/NSRemoveTemplate.tiff
  99. BIN portmap/artwork/Off20.png
  100. BIN portmap/artwork/On20.png
  101. BIN portmap/artwork/PortMap.icns
  102. +13 −0 portmap/main.m
  103. +26 −0 portmap/miniupnpc-LICENSE.txt
  104. +31 −0 ruby/nat-pmp-ip-broadcaster.rb
  105. +33 −0 ruby/nat-pmp-listener.rb
@@ -0,0 +1,19 @@
+*.xcodeproj/*.pbxuser
+*.xcodeproj/*.mode1v3
+*.xcodeproj/*.mode2v3
+
+# xcode noise
+*.pbxuser
+*.mode1v3
+
+# xcode 4 user noise
+*.xcworkspace
+xcuserdata/
+*.perspectivev3
+
+# old skool
+.svn
+
+# osx noise
+.DS_Store
+profile
Oops, something went wrong.
@@ -0,0 +1,18 @@
+{\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf380
+{\fonttbl\f0\fswiss\fcharset77 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+{\info
+{\*\company Test}}\margl1440\margr1440\vieww9000\viewh8400\viewkind0
+\deftab720
+\pard\pardeftab720\sl380\ql\qnatural
+
+\f0\fs25\fsmilli12700 \cf0 This source code is provided to you compliments of Red Sweater Software under the license as described below. NOTE: This is the MIT License.\
+\
+Copyright (c) 2006 Red Sweater Software\
+\
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\
+\
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\
+\
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\
+}
@@ -0,0 +1,17 @@
+//
+// RSVerticallyCenteredTextFieldCell.h
+// RSCommon
+//
+// Created by Daniel Jalkut on 6/17/06.
+// Copyright 2006 Red Sweater Software. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+
+@interface RSVerticallyCenteredTextFieldCell : NSTextFieldCell
+{
+ BOOL mIsEditingOrSelecting;
+}
+
+@end
@@ -0,0 +1,56 @@
+//
+// RSVerticallyCenteredTextField.m
+// RSCommon
+//
+// Created by Daniel Jalkut on 6/17/06.
+// Copyright 2006 Red Sweater Software. All rights reserved.
+//
+
+#import "RSVerticallyCenteredTextFieldCell.h"
+
+@implementation RSVerticallyCenteredTextFieldCell
+
+- (NSRect)drawingRectForBounds:(NSRect)theRect
+{
+ // Get the parent's idea of where we should draw
+ NSRect newRect = [super drawingRectForBounds:theRect];
+
+ // When the text field is being
+ // edited or selected, we have to turn off the magic because it screws up
+ // the configuration of the field editor. We sneak around this by
+ // intercepting selectWithFrame and editWithFrame and sneaking a
+ // reduced, centered rect in at the last minute.
+ if (mIsEditingOrSelecting == NO)
+ {
+ // Get our ideal size for current text
+ NSSize textSize = [self cellSizeForBounds:theRect];
+
+ // Center that in the proposed rect
+ float heightDelta = newRect.size.height - textSize.height;
+ if (heightDelta > 0)
+ {
+ newRect.size.height -= heightDelta;
+ newRect.origin.y += (heightDelta / 2);
+ }
+ }
+
+ return newRect;
+}
+
+- (void)selectWithFrame:(NSRect)aRect inView:(NSView *)controlView editor:(NSText *)textObj delegate:(id)anObject start:(int)selStart length:(int)selLength
+{
+ aRect = [self drawingRectForBounds:aRect];
+ mIsEditingOrSelecting = YES;
+ [super selectWithFrame:aRect inView:controlView editor:textObj delegate:anObject start:selStart length:selLength];
+ mIsEditingOrSelecting = NO;
+}
+
+- (void)editWithFrame:(NSRect)aRect inView:(NSView *)controlView editor:(NSText *)textObj delegate:(id)anObject event:(NSEvent *)theEvent
+{
+ aRect = [self drawingRectForBounds:aRect];
+ mIsEditingOrSelecting = YES;
+ [super editWithFrame:aRect inView:controlView editor:textObj delegate:anObject event:theEvent];
+ mIsEditingOrSelecting = NO;
+}
+
+@end
@@ -0,0 +1,30 @@
+zipBasePath="{TARGET_BUILD_DIR}/${ZipName}"
+
+echo "Removing zip file ${zipBasePath}.zip"
+rm -f "${zipBasePath}.zip"
+if [ x${ACTION} = xclean ]; then
+ exit 0
+fi
+
+echo "Removing .svn directories..."
+find "${BUILT_PRODUCTS_DIR}/${ZipProduct}" -name ".svn" -exec rm -rvf "{}" \;
+echo "...done"
+
+echo "Setting ownership..."
+chgrp -R admin "${BUILT_PRODUCTS_DIR}/${ZipProduct}"
+echo "...done"
+
+echo "Setting permissions..."
+chmod -R g+w "${BUILT_PRODUCTS_DIR}/${ZipProduct}"
+echo "...done"
+
+echo "Creating Zip file ${zipBasePath}.zip ..."
+cd "${BUILT_PRODUCTS_DIR}"
+zip -9 -r -y "${ZipName}.zip" "${ZipProduct}"
+echo "...done"
+
+echo "Adding Revision Number to Zip file ${zipBasePath}.zip ..."
+REV=`/usr/local/bin/svnversion -n "${SRCROOT}"`
+cd "${BUILT_PRODUCTS_DIR}"
+cp "${ZipName}.zip" "${ZipName}-${REV}.zip"
+echo "...done"
Oops, something went wrong.

0 comments on commit ed23991

Please sign in to comment.