Permalink
Browse files

Adding the public framework for reading an Acorn image.

  • Loading branch information...
1 parent e86eb49 commit b601d7b692f7ce9f7173e7d74b0123bce499c3c1 @ccgus committed Sep 11, 2012
Showing with 8,610 additions and 0 deletions.
  1. +421 −0 objective-c/AcornImageFramework/AcornImage.xcodeproj/project.pbxproj
  2. +7 −0 objective-c/AcornImageFramework/AcornImage.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  3. BIN objective-c/AcornImageFramework/AcornImageTest/AcornImageTest.xcodeproj/TemplateIcon.icns
  4. +326 −0 objective-c/AcornImageFramework/AcornImageTest/AcornImageTest.xcodeproj/project.pbxproj
  5. +7 −0 ...ageFramework/AcornImageTest/AcornImageTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  6. +9 −0 objective-c/AcornImageFramework/AcornImageTest/AcornImageTest_Prefix.pch
  7. +33 −0 objective-c/AcornImageFramework/AcornImageTest/AppDelegate.h
  8. +154 −0 objective-c/AcornImageFramework/AcornImageTest/AppDelegate.m
  9. BIN objective-c/AcornImageFramework/AcornImageTest/English.lproj/InfoPlist.strings
  10. +4,031 −0 objective-c/AcornImageFramework/AcornImageTest/English.lproj/MainMenu.xib
  11. +28 −0 objective-c/AcornImageFramework/AcornImageTest/Info.plist
  12. BIN objective-c/AcornImageFramework/AcornImageTest/aduck.jpg
  13. +14 −0 objective-c/AcornImageFramework/AcornImageTest/main.m
  14. BIN objective-c/AcornImageFramework/English.lproj/InfoPlist.strings
  15. +24 −0 objective-c/AcornImageFramework/Info.plist
  16. +111 −0 objective-c/AcornImageFramework/fmdb/FMDatabase.h
  17. +706 −0 objective-c/AcornImageFramework/fmdb/FMDatabase.m
  18. +24 −0 objective-c/AcornImageFramework/fmdb/FMDatabaseAdditions.h
  19. +51 −0 objective-c/AcornImageFramework/fmdb/FMDatabaseAdditions.m
  20. +65 −0 objective-c/AcornImageFramework/fmdb/FMResultSet.h
  21. +383 −0 objective-c/AcornImageFramework/fmdb/FMResultSet.m
  22. +20 −0 objective-c/AcornImageFramework/src/ACBitmapLayer.h
  23. +145 −0 objective-c/AcornImageFramework/src/ACBitmapLayer.m
  24. +16 −0 objective-c/AcornImageFramework/src/ACCircle.h
  25. +22 −0 objective-c/AcornImageFramework/src/ACCircle.m
  26. +59 −0 objective-c/AcornImageFramework/src/ACGraphic.h
  27. +279 −0 objective-c/AcornImageFramework/src/ACGraphic.m
  28. +40 −0 objective-c/AcornImageFramework/src/ACImage.h
  29. +293 −0 objective-c/AcornImageFramework/src/ACImage.m
  30. +53 −0 objective-c/AcornImageFramework/src/ACImageAgent.h
  31. +304 −0 objective-c/AcornImageFramework/src/ACImageAgent.m
  32. +21 −0 objective-c/AcornImageFramework/src/ACImageRep.h
  33. +113 −0 objective-c/AcornImageFramework/src/ACImageRep.m
  34. +33 −0 objective-c/AcornImageFramework/src/ACLayer.h
  35. +65 −0 objective-c/AcornImageFramework/src/ACLayer.m
  36. +27 −0 objective-c/AcornImageFramework/src/ACLine.h
  37. +132 −0 objective-c/AcornImageFramework/src/ACLine.m
  38. +16 −0 objective-c/AcornImageFramework/src/ACRect.h
  39. +59 −0 objective-c/AcornImageFramework/src/ACRect.m
  40. +24 −0 objective-c/AcornImageFramework/src/ACShapeImage.h
  41. +187 −0 objective-c/AcornImageFramework/src/ACShapeImage.m
  42. +21 −0 objective-c/AcornImageFramework/src/ACShapeLayer.h
  43. +108 −0 objective-c/AcornImageFramework/src/ACShapeLayer.m
  44. +20 −0 objective-c/AcornImageFramework/src/ACText.h
  45. +157 −0 objective-c/AcornImageFramework/src/ACText.m
  46. +2 −0 objective-c/AcornImageFramework/src/AcornImage.h

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,326 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 45;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1DDD58160DA1D0A300B32029 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD58140DA1D0A300B32029 /* MainMenu.xib */; };
+ 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; };
+ 8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; };
+ 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
+ CC2BFCDB0F991B0D009963E4 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CC2BFCDA0F991B0D009963E4 /* AppDelegate.m */; };
+ CC2BFCE00F991BD3009963E4 /* aduck.jpg in Resources */ = {isa = PBXBuildFile; fileRef = CC2BFCDF0F991BD3009963E4 /* aduck.jpg */; };
+ CC2BFEB40F993F53009963E4 /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CC2BFEB30F993F53009963E4 /* QuartzCore.framework */; };
+ CC4FA3281066BF7500E5CBE3 /* AcornImage.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CC4FA3271066BF7500E5CBE3 /* AcornImage.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ CC2BFCF80F991CD7009963E4 /* Copy Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Copy Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
+ 13E42FB307B3F0F600E4EEF1 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = "<absolute>"; };
+ 1DDD58150DA1D0A300B32029 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = "<group>"; };
+ 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ 29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
+ 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
+ 32CA4F630368D1EE00C91783 /* AcornImageTest_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AcornImageTest_Prefix.pch; sourceTree = "<group>"; };
+ 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+ 8D1107320486CEB800E47090 /* AcornImageTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AcornImageTest.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ CC2BFCD90F991B0D009963E4 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
+ CC2BFCDA0F991B0D009963E4 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
+ CC2BFCDF0F991BD3009963E4 /* aduck.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = aduck.jpg; sourceTree = "<group>"; };
+ CC2BFEB30F993F53009963E4 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = /System/Library/Frameworks/QuartzCore.framework; sourceTree = "<absolute>"; };
+ CC4FA3271066BF7500E5CBE3 /* AcornImage.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AcornImage.framework; path = /builds/Debug/AcornImage.framework; sourceTree = "<absolute>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 8D11072E0486CEB800E47090 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
+ CC2BFEB40F993F53009963E4 /* QuartzCore.framework in Frameworks */,
+ CC4FA3281066BF7500E5CBE3 /* AcornImage.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 080E96DDFE201D6D7F000001 /* Classes */ = {
+ isa = PBXGroup;
+ children = (
+ CC2BFCD90F991B0D009963E4 /* AppDelegate.h */,
+ CC2BFCDA0F991B0D009963E4 /* AppDelegate.m */,
+ );
+ name = Classes;
+ sourceTree = "<group>";
+ };
+ 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */,
+ );
+ name = "Linked Frameworks";
+ sourceTree = "<group>";
+ };
+ 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 29B97324FDCFA39411CA2CEA /* AppKit.framework */,
+ 13E42FB307B3F0F600E4EEF1 /* CoreData.framework */,
+ 29B97325FDCFA39411CA2CEA /* Foundation.framework */,
+ );
+ name = "Other Frameworks";
+ sourceTree = "<group>";
+ };
+ 19C28FACFE9D520D11CA2CBB /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 8D1107320486CEB800E47090 /* AcornImageTest.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 29B97314FDCFA39411CA2CEA /* AcornImageTest */ = {
+ isa = PBXGroup;
+ children = (
+ 080E96DDFE201D6D7F000001 /* Classes */,
+ 29B97315FDCFA39411CA2CEA /* Other Sources */,
+ 29B97317FDCFA39411CA2CEA /* Resources */,
+ 29B97323FDCFA39411CA2CEA /* Frameworks */,
+ 19C28FACFE9D520D11CA2CBB /* Products */,
+ );
+ name = AcornImageTest;
+ sourceTree = "<group>";
+ };
+ 29B97315FDCFA39411CA2CEA /* Other Sources */ = {
+ isa = PBXGroup;
+ children = (
+ 32CA4F630368D1EE00C91783 /* AcornImageTest_Prefix.pch */,
+ 29B97316FDCFA39411CA2CEA /* main.m */,
+ );
+ name = "Other Sources";
+ sourceTree = "<group>";
+ };
+ 29B97317FDCFA39411CA2CEA /* Resources */ = {
+ isa = PBXGroup;
+ children = (
+ CC2BFCDF0F991BD3009963E4 /* aduck.jpg */,
+ 8D1107310486CEB800E47090 /* Info.plist */,
+ 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */,
+ 1DDD58140DA1D0A300B32029 /* MainMenu.xib */,
+ );
+ name = Resources;
+ sourceTree = "<group>";
+ };
+ 29B97323FDCFA39411CA2CEA /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ CC4FA3271066BF7500E5CBE3 /* AcornImage.framework */,
+ CC2BFEB30F993F53009963E4 /* QuartzCore.framework */,
+ 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */,
+ 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 8D1107260486CEB800E47090 /* AcornImageTest */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "AcornImageTest" */;
+ buildPhases = (
+ 8D1107290486CEB800E47090 /* Resources */,
+ CC2BFCF80F991CD7009963E4 /* Copy Frameworks */,
+ 8D11072C0486CEB800E47090 /* Sources */,
+ 8D11072E0486CEB800E47090 /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = AcornImageTest;
+ productInstallPath = "$(HOME)/Applications";
+ productName = AcornImageTest;
+ productReference = 8D1107320486CEB800E47090 /* AcornImageTest.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 29B97313FDCFA39411CA2CEA /* Project object */ = {
+ isa = PBXProject;
+ buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "AcornImageTest" */;
+ compatibilityVersion = "Xcode 3.1";
+ developmentRegion = English;
+ hasScannedForEncodings = 1;
+ knownRegions = (
+ en,
+ );
+ mainGroup = 29B97314FDCFA39411CA2CEA /* AcornImageTest */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 8D1107260486CEB800E47090 /* AcornImageTest */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 8D1107290486CEB800E47090 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */,
+ 1DDD58160DA1D0A300B32029 /* MainMenu.xib in Resources */,
+ CC2BFCE00F991BD3009963E4 /* aduck.jpg in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 8D11072C0486CEB800E47090 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 8D11072D0486CEB800E47090 /* main.m in Sources */,
+ CC2BFCDB0F991B0D009963E4 /* AppDelegate.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 089C165DFE840E0CC02AAC07 /* English */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+ 1DDD58140DA1D0A300B32029 /* MainMenu.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 1DDD58150DA1D0A300B32029 /* English */,
+ );
+ name = MainMenu.xib;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ C01FCF4B08A954540054247B /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = NO;
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "\"$(SRCROOT)/../../../../../builds/Release\"",
+ /builds/Release,
+ /builds/Debug,
+ );
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_FIX_AND_CONTINUE = YES;
+ GCC_MODEL_TUNING = G5;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = AcornImageTest_Prefix.pch;
+ INFOPLIST_FILE = Info.plist;
+ INSTALL_PATH = "$(HOME)/Applications";
+ PRODUCT_NAME = AcornImageTest;
+ };
+ name = Debug;
+ };
+ C01FCF4C08A954540054247B /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "\"$(SRCROOT)/../../../../../builds/Release\"",
+ /builds/Release,
+ /builds/Debug,
+ );
+ GCC_ENABLE_OBJC_GC = supported;
+ GCC_MODEL_TUNING = G5;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = AcornImageTest_Prefix.pch;
+ INFOPLIST_FILE = Info.plist;
+ INSTALL_PATH = "$(HOME)/Applications";
+ PRODUCT_NAME = AcornImageTest;
+ };
+ name = Release;
+ };
+ C01FCF4F08A954540054247B /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ GCC_C_LANGUAGE_STANDARD = c99;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.8;
+ ONLY_ACTIVE_ARCH = YES;
+ PREBINDING = NO;
+ };
+ name = Debug;
+ };
+ C01FCF5008A954540054247B /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ GCC_C_LANGUAGE_STANDARD = c99;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ MACOSX_DEPLOYMENT_TARGET = 10.8;
+ PREBINDING = NO;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "AcornImageTest" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ C01FCF4B08A954540054247B /* Debug */,
+ C01FCF4C08A954540054247B /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ C01FCF4E08A954540054247B /* Build configuration list for PBXProject "AcornImageTest" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ C01FCF4F08A954540054247B /* Debug */,
+ C01FCF5008A954540054247B /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
+}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,9 @@
+//
+// Prefix header for all source files of the 'AcornImageTest' target in the 'AcornImageTest' project
+//
+
+#ifdef __OBJC__
+ #import <Cocoa/Cocoa.h>
+#endif
+
+#define debug NSLog
@@ -0,0 +1,33 @@
+//
+// AppDelegate.h
+// AcornImageTest
+//
+// Created by August Mueller on 4/17/09.
+// Copyright 2009 Flying Meat Inc. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+enum {
+ ACNS,
+ ACCI,
+ ACCG,
+ ACPath
+};
+
+@interface AppDelegate : NSObject {
+ IBOutlet NSImageView *imageView;
+
+ id _currentAcornAgent;
+ int _editCall;
+}
+
+@property (retain) id currentAcornAgent;
+
+- (void) editNSInAcornAction:(id)sender;
+- (void) editCIInAcornAction:(id)sender;
+- (void) editCGInAcornAction:(id)sender;
+- (void) editPathInAcornAction:(id)sender;
+- (void) testBitmapImageRep:(id)sender;
+
+@end
Oops, something went wrong.

0 comments on commit b601d7b

Please sign in to comment.