Skip to content
Browse files

Implemented the ORCDiscount framework.

  • Loading branch information...
1 parent 2b98e93 commit 36691b0cd69347489d036ba34105f33465a25c3c @mugginsoft mugginsoft committed Jul 9, 2011
View
1,523 MarkdownLive.xcodeproj/Jonathan.perspectivev3
1,523 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
265 MarkdownLive.xcodeproj/project.pbxproj
@@ -9,29 +9,61 @@
/* Begin PBXBuildFile section */
1DDD582C0DA1D0D100B32029 /* MyDocument.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD58280DA1D0D100B32029 /* MyDocument.xib */; };
1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD582A0DA1D0D100B32029 /* MainMenu.xib */; };
- 2269367F12E7C53000171322 /* emmatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 2269367E12E7C53000171322 /* emmatch.c */; };
- 2269369B12E7C6AB00171322 /* html5.c in Sources */ = {isa = PBXBuildFile; fileRef = 2269369A12E7C6AB00171322 /* html5.c */; };
- 226936A012E7C6BE00171322 /* tags.c in Sources */ = {isa = PBXBuildFile; fileRef = 2269369E12E7C6BE00171322 /* tags.c */; };
- 226936CA12E7CA2800171322 /* setup.c in Sources */ = {isa = PBXBuildFile; fileRef = 226936C912E7CA2800171322 /* setup.c */; };
226936E712E7CDC500171322 /* styles.css in Resources */ = {isa = PBXBuildFile; fileRef = 226936E612E7CDC500171322 /* styles.css */; };
- 795F6C4F105D6EC400D1F90A /* mkdio.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C4E105D6EC400D1F90A /* mkdio.c */; };
- 795F6C51105D6ECE00D1F90A /* markdown.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C50105D6ECE00D1F90A /* markdown.c */; };
- 795F6C53105D6ED800D1F90A /* generate.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C52105D6ED800D1F90A /* generate.c */; };
- 795F6C55105D6EE100D1F90A /* resource.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C54105D6EE100D1F90A /* resource.c */; };
- 795F6C62105D6F6E00D1F90A /* xml.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C61105D6F6E00D1F90A /* xml.c */; };
- 795F6C66105D6F8500D1F90A /* Csio.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C65105D6F8500D1F90A /* Csio.c */; };
795F6C87105D70A300D1F90A /* MarkdownLiveApp.icns in Resources */ = {isa = PBXBuildFile; fileRef = 795F6C86105D70A300D1F90A /* MarkdownLiveApp.icns */; };
795F6CCD105D741100D1F90A /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 795F6CCC105D741100D1F90A /* WebKit.framework */; };
- 795F6DBA105D75D300D1F90A /* discountWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 795F6DB5105D75D300D1F90A /* discountWrapper.m */; };
- 795F6DBB105D75D300D1F90A /* markdownWrapper.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6DB6105D75D300D1F90A /* markdownWrapper.c */; };
- 795F6DBC105D75D300D1F90A /* mkdioWrapper.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6DB8105D75D300D1F90A /* mkdioWrapper.c */; };
8D15AC2C0486D014006FF6A4 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 2A37F4B9FDCFA73011CA2CEA /* Credits.rtf */; };
8D15AC2F0486D014006FF6A4 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165FFE840EACC02AAC07 /* InfoPlist.strings */; };
8D15AC310486D014006FF6A4 /* MyDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A37F4ACFDCFA73011CA2CEA /* MyDocument.m */; settings = {ATTRIBUTES = (); }; };
8D15AC320486D014006FF6A4 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 2A37F4B0FDCFA73011CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; };
8D15AC340486D014006FF6A4 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A7FEA54F5311CA2CBB /* Cocoa.framework */; };
+ ABECD8C713C8B90E00B77CFD /* mkdio.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C4E105D6EC400D1F90A /* mkdio.c */; };
+ ABECD8C813C8B92900B77CFD /* markdown.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C50105D6ECE00D1F90A /* markdown.c */; };
+ ABECD8C913C8B92900B77CFD /* generate.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C52105D6ED800D1F90A /* generate.c */; };
+ ABECD8CA13C8B92900B77CFD /* resource.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C54105D6EE100D1F90A /* resource.c */; };
+ ABECD8CB13C8B92900B77CFD /* xml.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C61105D6F6E00D1F90A /* xml.c */; };
+ ABECD8CC13C8B92900B77CFD /* Csio.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6C65105D6F8500D1F90A /* Csio.c */; };
+ ABECD8CD13C8B92900B77CFD /* emmatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 2269367E12E7C53000171322 /* emmatch.c */; };
+ ABECD8CE13C8B92900B77CFD /* html5.c in Sources */ = {isa = PBXBuildFile; fileRef = 2269369A12E7C6AB00171322 /* html5.c */; };
+ ABECD8CF13C8B92900B77CFD /* tags.c in Sources */ = {isa = PBXBuildFile; fileRef = 2269369E12E7C6BE00171322 /* tags.c */; };
+ ABECD8D013C8B92900B77CFD /* setup.c in Sources */ = {isa = PBXBuildFile; fileRef = 226936C912E7CA2800171322 /* setup.c */; };
+ ABECD8D113C8B94A00B77CFD /* discountWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = 795F6DB5105D75D300D1F90A /* discountWrapper.m */; };
+ ABECD8D213C8B94A00B77CFD /* markdownWrapper.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6DB6105D75D300D1F90A /* markdownWrapper.c */; };
+ ABECD8D313C8B94A00B77CFD /* mkdioWrapper.c in Sources */ = {isa = PBXBuildFile; fileRef = 795F6DB8105D75D300D1F90A /* mkdioWrapper.c */; };
+ ABECD8DE13C8B9C400B77CFD /* ORCDiscount.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = ABECD8C213C8B8CA00B77CFD /* ORCDiscount.framework */; };
+ ABECD8ED13C8BA1A00B77CFD /* discountWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 795F6DB4105D75D300D1F90A /* discountWrapper.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ ABECD8EF13C8BA2100B77CFD /* markdownWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 795F6DB7105D75D300D1F90A /* markdownWrapper.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ ABECD8F113C8BA2400B77CFD /* mkdioWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = 795F6DB9105D75D300D1F90A /* mkdioWrapper.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ ABECD95C13C8D14C00B77CFD /* ORCDiscount.h in Headers */ = {isa = PBXBuildFile; fileRef = ABECD95B13C8D14C00B77CFD /* ORCDiscount.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ ABECD96B13C8D2D200B77CFD /* markdown.h in Headers */ = {isa = PBXBuildFile; fileRef = 22ECEED912E7C2E8003B50DC /* markdown.h */; settings = {ATTRIBUTES = (Public, ); }; };
+ ABECD98D13C8D6A900B77CFD /* ORCDiscount.m in Sources */ = {isa = PBXBuildFile; fileRef = ABECD98C13C8D6A900B77CFD /* ORCDiscount.m */; };
+ ABECD9ED13C8DC2B00B77CFD /* ORCDiscount.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ABECD8C213C8B8CA00B77CFD /* ORCDiscount.framework */; };
/* End PBXBuildFile section */
+/* Begin PBXContainerItemProxy section */
+ ABECD8D713C8B98D00B77CFD /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 2A37F4A9FDCFA73011CA2CEA /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = ABECD8C113C8B8CA00B77CFD;
+ remoteInfo = Discount;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ ABECD8EA13C8B9E700B77CFD /* Copy Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ ABECD8DE13C8B9C400B77CFD /* ORCDiscount.framework in Copy Frameworks */,
+ );
+ name = "Copy Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
/* Begin PBXFileReference section */
089C1660FE840EACC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
1058C7A7FEA54F5311CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
@@ -70,18 +102,31 @@
795F6DB9105D75D300D1F90A /* mkdioWrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mkdioWrapper.h; sourceTree = "<group>"; };
8D15AC360486D014006FF6A4 /* MarkdownLive-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "MarkdownLive-Info.plist"; sourceTree = "<group>"; };
8D15AC370486D014006FF6A4 /* MarkdownLive.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MarkdownLive.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ ABCE3DDF13C8DFFF00DF3CD0 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README.md; sourceTree = "<group>"; };
+ ABECD8C213C8B8CA00B77CFD /* ORCDiscount.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ORCDiscount.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ ABECD8C313C8B8CA00B77CFD /* ORCDiscount-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ORCDiscount-Info.plist"; sourceTree = "<group>"; };
+ ABECD95B13C8D14C00B77CFD /* ORCDiscount.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ORCDiscount.h; path = ORCDiscount/ORCDiscount.h; sourceTree = "<group>"; };
+ ABECD98C13C8D6A900B77CFD /* ORCDiscount.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ORCDiscount.m; path = ORCDiscount/ORCDiscount.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
8D15AC330486D014006FF6A4 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ ABECD9ED13C8DC2B00B77CFD /* ORCDiscount.framework in Frameworks */,
8D15AC340486D014006FF6A4 /* Cocoa.framework in Frameworks */,
795F6CCD105D741100D1F90A /* WebKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
+ ABECD8C013C8B8CA00B77CFD /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
@@ -108,6 +153,7 @@
isa = PBXGroup;
children = (
8D15AC370486D014006FF6A4 /* MarkdownLive.app */,
+ ABECD8C213C8B8CA00B77CFD /* ORCDiscount.framework */,
);
name = Products;
sourceTree = "<group>";
@@ -124,6 +170,7 @@
2A37F4AAFDCFA73011CA2CEA /* MarkdownLive */ = {
isa = PBXGroup;
children = (
+ ABECD96113C8D1C200B77CFD /* ORCDiscount */,
2A37F4ABFDCFA73011CA2CEA /* Classes */,
795F6C4D105D6EA500D1F90A /* discount */,
22ECEEC512E7C258003B50DC /* discount-config */,
@@ -132,6 +179,8 @@
2A37F4B8FDCFA73011CA2CEA /* Resources */,
2A37F4C3FDCFA73011CA2CEA /* Frameworks */,
19C28FB0FE9D524F11CA2CBB /* Products */,
+ ABECD8C313C8B8CA00B77CFD /* ORCDiscount-Info.plist */,
+ ABCE3DDF13C8DFFF00DF3CD0 /* README.md */,
);
name = MarkdownLive;
sourceTree = "<group>";
@@ -209,35 +258,78 @@
path = discount_wrappers;
sourceTree = "<group>";
};
+ ABECD96113C8D1C200B77CFD /* ORCDiscount */ = {
+ isa = PBXGroup;
+ children = (
+ ABECD95B13C8D14C00B77CFD /* ORCDiscount.h */,
+ ABECD98C13C8D6A900B77CFD /* ORCDiscount.m */,
+ );
+ name = ORCDiscount;
+ sourceTree = "<group>";
+ };
/* End PBXGroup section */
+/* Begin PBXHeadersBuildPhase section */
+ ABECD8BD13C8B8CA00B77CFD /* Headers */ = {
+ isa = PBXHeadersBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ ABECD96B13C8D2D200B77CFD /* markdown.h in Headers */,
+ ABECD8F113C8BA2400B77CFD /* mkdioWrapper.h in Headers */,
+ ABECD8EF13C8BA2100B77CFD /* markdownWrapper.h in Headers */,
+ ABECD8ED13C8BA1A00B77CFD /* discountWrapper.h in Headers */,
+ ABECD95C13C8D14C00B77CFD /* ORCDiscount.h in Headers */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXHeadersBuildPhase section */
+
/* Begin PBXNativeTarget section */
8D15AC270486D014006FF6A4 /* MarkdownLive */ = {
isa = PBXNativeTarget;
buildConfigurationList = C05733C708A9546B00998B17 /* Build configuration list for PBXNativeTarget "MarkdownLive" */;
buildPhases = (
8D15AC2B0486D014006FF6A4 /* Resources */,
8D15AC300486D014006FF6A4 /* Sources */,
+ ABECD8EA13C8B9E700B77CFD /* Copy Frameworks */,
8D15AC330486D014006FF6A4 /* Frameworks */,
);
buildRules = (
);
dependencies = (
+ ABECD8D813C8B98D00B77CFD /* PBXTargetDependency */,
);
name = MarkdownLive;
productInstallPath = "$(HOME)/Applications";
productName = MarkdownLive;
productReference = 8D15AC370486D014006FF6A4 /* MarkdownLive.app */;
productType = "com.apple.product-type.application";
};
+ ABECD8C113C8B8CA00B77CFD /* ORCDiscount */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = ABECD8C613C8B8CA00B77CFD /* Build configuration list for PBXNativeTarget "ORCDiscount" */;
+ buildPhases = (
+ ABECD8BD13C8B8CA00B77CFD /* Headers */,
+ ABECD8BE13C8B8CA00B77CFD /* Resources */,
+ ABECD8BF13C8B8CA00B77CFD /* Sources */,
+ ABECD8C013C8B8CA00B77CFD /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = ORCDiscount;
+ productName = Discount;
+ productReference = ABECD8C213C8B8CA00B77CFD /* ORCDiscount.framework */;
+ productType = "com.apple.product-type.framework";
+ };
/* End PBXNativeTarget section */
/* Begin PBXProject section */
2A37F4A9FDCFA73011CA2CEA /* Project object */ = {
isa = PBXProject;
buildConfigurationList = C05733CB08A9546B00998B17 /* Build configuration list for PBXProject "MarkdownLive" */;
compatibilityVersion = "Xcode 3.1";
- developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
English,
@@ -250,6 +342,7 @@
projectRoot = "";
targets = (
8D15AC270486D014006FF6A4 /* MarkdownLive */,
+ ABECD8C113C8B8CA00B77CFD /* ORCDiscount */,
);
};
/* End PBXProject section */
@@ -268,6 +361,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ ABECD8BE13C8B8CA00B77CFD /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
@@ -277,24 +377,40 @@
files = (
8D15AC310486D014006FF6A4 /* MyDocument.m in Sources */,
8D15AC320486D014006FF6A4 /* main.m in Sources */,
- 795F6C4F105D6EC400D1F90A /* mkdio.c in Sources */,
- 795F6C51105D6ECE00D1F90A /* markdown.c in Sources */,
- 795F6C53105D6ED800D1F90A /* generate.c in Sources */,
- 795F6C55105D6EE100D1F90A /* resource.c in Sources */,
- 795F6C62105D6F6E00D1F90A /* xml.c in Sources */,
- 795F6C66105D6F8500D1F90A /* Csio.c in Sources */,
- 795F6DBA105D75D300D1F90A /* discountWrapper.m in Sources */,
- 795F6DBB105D75D300D1F90A /* markdownWrapper.c in Sources */,
- 795F6DBC105D75D300D1F90A /* mkdioWrapper.c in Sources */,
- 2269367F12E7C53000171322 /* emmatch.c in Sources */,
- 2269369B12E7C6AB00171322 /* html5.c in Sources */,
- 226936A012E7C6BE00171322 /* tags.c in Sources */,
- 226936CA12E7CA2800171322 /* setup.c in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ ABECD8BF13C8B8CA00B77CFD /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ ABECD8C713C8B90E00B77CFD /* mkdio.c in Sources */,
+ ABECD8C813C8B92900B77CFD /* markdown.c in Sources */,
+ ABECD8C913C8B92900B77CFD /* generate.c in Sources */,
+ ABECD8CA13C8B92900B77CFD /* resource.c in Sources */,
+ ABECD8CB13C8B92900B77CFD /* xml.c in Sources */,
+ ABECD8CC13C8B92900B77CFD /* Csio.c in Sources */,
+ ABECD8CD13C8B92900B77CFD /* emmatch.c in Sources */,
+ ABECD8CE13C8B92900B77CFD /* html5.c in Sources */,
+ ABECD8CF13C8B92900B77CFD /* tags.c in Sources */,
+ ABECD8D013C8B92900B77CFD /* setup.c in Sources */,
+ ABECD8D113C8B94A00B77CFD /* discountWrapper.m in Sources */,
+ ABECD8D213C8B94A00B77CFD /* markdownWrapper.c in Sources */,
+ ABECD8D313C8B94A00B77CFD /* mkdioWrapper.c in Sources */,
+ ABECD98D13C8D6A900B77CFD /* ORCDiscount.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
+/* Begin PBXTargetDependency section */
+ ABECD8D813C8B98D00B77CFD /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = ABECD8C113C8B8CA00B77CFD /* ORCDiscount */;
+ targetProxy = ABECD8D713C8B98D00B77CFD /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
/* Begin PBXVariantGroup section */
089C165FFE840EACC02AAC07 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
@@ -331,11 +447,68 @@
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
+ ABECD8C413C8B8CA00B77CFD /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = NO;
+ DYLIB_COMPATIBILITY_VERSION = 1;
+ DYLIB_CURRENT_VERSION = 1;
+ FRAMEWORK_VERSION = A;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_FIX_AND_CONTINUE = YES;
+ GCC_MODEL_TUNING = G5;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PRECOMPILE_PREFIX_HEADER = NO;
+ GCC_PREFIX_HEADER = "";
+ INFOPLIST_FILE = "ORCDiscount-Info.plist";
+ INSTALL_PATH = "@executable_path/../Frameworks";
+ OTHER_LDFLAGS = (
+ "-framework",
+ Foundation,
+ "-framework",
+ AppKit,
+ );
+ PREBINDING = NO;
+ PRODUCT_NAME = ORCDiscount;
+ RUN_CLANG_STATIC_ANALYZER = YES;
+ };
+ name = Debug;
+ };
+ ABECD8C513C8B8CA00B77CFD /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ COPY_PHASE_STRIP = YES;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ DYLIB_COMPATIBILITY_VERSION = 1;
+ DYLIB_CURRENT_VERSION = 1;
+ FRAMEWORK_VERSION = A;
+ GCC_ENABLE_FIX_AND_CONTINUE = NO;
+ GCC_MODEL_TUNING = G5;
+ GCC_PRECOMPILE_PREFIX_HEADER = NO;
+ GCC_PREFIX_HEADER = "";
+ INFOPLIST_FILE = "ORCDiscount-Info.plist";
+ INSTALL_PATH = "@executable_path/../Frameworks";
+ OTHER_LDFLAGS = (
+ "-framework",
+ Foundation,
+ "-framework",
+ AppKit,
+ );
+ PREBINDING = NO;
+ PRODUCT_NAME = ORCDiscount;
+ RUN_CLANG_STATIC_ANALYZER = YES;
+ ZERO_LINK = NO;
+ };
+ name = Release;
+ };
C05733C808A9546B00998B17 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = NO;
+ FRAMEWORK_SEARCH_PATHS = "\"$(SRCROOT)\"/**";
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
@@ -353,6 +526,7 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ FRAMEWORK_SEARCH_PATHS = "\"$(SRCROOT)\"/**";
GCC_MODEL_TUNING = G5;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = MarkdownLive_Prefix.pch;
@@ -366,9 +540,21 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_ENABLE_OBJC_GC = supported;
GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_CHECK_SWITCH_STATEMENTS = YES;
+ GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = NO;
+ GCC_WARN_PEDANTIC = NO;
+ GCC_WARN_SHADOW = NO;
+ GCC_WARN_SIGN_COMPARE = NO;
+ GCC_WARN_STRICT_SELECTOR_MATCH = NO;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNKNOWN_PRAGMAS = YES;
+ GCC_WARN_UNUSED_PARAMETER = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
@@ -381,18 +567,43 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ DEPLOYMENT_POSTPROCESSING = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_ENABLE_OBJC_GC = supported;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_CHECK_SWITCH_STATEMENTS = YES;
+ GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = NO;
+ GCC_WARN_PEDANTIC = NO;
+ GCC_WARN_SHADOW = NO;
+ GCC_WARN_SIGN_COMPARE = NO;
+ GCC_WARN_STRICT_SELECTOR_MATCH = NO;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNKNOWN_PRAGMAS = YES;
+ GCC_WARN_UNUSED_PARAMETER = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;
SDKROOT = macosx10.6;
+ SEPARATE_STRIP = YES;
+ STRIP_INSTALLED_PRODUCT = YES;
USER_HEADER_SEARCH_PATHS = "\"$(SRCROOT)/discount-1.5.4\"";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
+ ABECD8C613C8B8CA00B77CFD /* Build configuration list for PBXNativeTarget "ORCDiscount" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ ABECD8C413C8B8CA00B77CFD /* Debug */,
+ ABECD8C513C8B8CA00B77CFD /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
C05733C708A9546B00998B17 /* Build configuration list for PBXNativeTarget "MarkdownLive" */ = {
isa = XCConfigurationList;
buildConfigurations = (
View
48 MyDocument.m
@@ -5,19 +5,16 @@
***************************************************************************/
+#import "ORCDiscount.h"
#import "MyDocument.h"
-#include "discountWrapper.h"
NSString *kMarkdownDocumentType = @"MarkdownDocumentType";
-@implementation MyDocument
+@interface MyDocument()
+- (void)htmlPreviewTimer:(NSTimer*)timer_;
+@end
-- (NSString*)markdown2html:(NSString*)markdown_ {
- if (!markdown_)
- return @"";
-
- return discountToHTML(markdown_);
-}
+@implementation MyDocument
- (id)init {
self = [super init];
@@ -95,29 +92,16 @@ - (BOOL)readFromURL:(NSURL*)absoluteURL_ ofType:(NSString*)typeName_ error:(NSEr
}
- (void)textDidChange:(NSNotification*)notification_ {
+
+#pragma unused(notification_)
+
whenToUpdatePreview = [NSDate timeIntervalSinceReferenceDate] + 0.5;
}
-- (NSString *)HTMLPage:(NSString *)markdownHTML withCSSHTML:(NSString *)cssHTML
-{
- return [NSString stringWithFormat:
- @"<!DOCTYPE html>\n<html>\n<head>\n<title>%@</title>\n%@</head>\n<body>%@</body>\n</html>",
- @"Markdown Preview",
- cssHTML,
- markdownHTML
- ];
-}
-
-- (NSString *)HTMLPage:(NSString *)markdownHTML withCSSFromURL:(NSURL *)cssURL
-{
- NSString *cssHTML = [NSString stringWithFormat:
- @"<link rel=\"stylesheet\" type=\"text/css\" href=\"%@\">\n",
- [cssURL absoluteString]
- ];
- return [self HTMLPage:markdownHTML withCSSHTML:cssHTML];
-}
-
- (void)htmlPreviewTimer:(NSTimer*)timer_ {
+
+#pragma unused(timer_)
+
if ([NSDate timeIntervalSinceReferenceDate] >= whenToUpdatePreview) {
whenToUpdatePreview = [[NSDate distantFuture] timeIntervalSinceReferenceDate];
@@ -133,12 +117,15 @@ - (void)htmlPreviewTimer:(NSTimer*)timer_ {
hasSavedOrigin = YES;
}
NSURL *css = [[NSBundle mainBundle] URLForResource:@"styles" withExtension:@"css"];
- NSString *html = [self HTMLPage:[self markdown2html:[markdownSource string]] withCSSFromURL:css];
+ NSString *html = [ORCDiscount HTMLPage:[ORCDiscount markdown2HTML:[markdownSource string]] withCSSFromURL:css];
[[htmlPreviewWebView mainFrame] loadHTMLString:html baseURL:[self fileURL]];
}
}
- (void)webView:(WebView*)sender_ didFinishLoadForFrame:(WebFrame*)frame_ {
+
+#pragma unused(sender_)
+
if ([htmlPreviewWebView mainFrame] == frame_ && hasSavedOrigin) {
hasSavedOrigin = NO;
if (savedAtBottom)
@@ -149,8 +136,11 @@ - (void)webView:(WebView*)sender_ didFinishLoadForFrame:(WebFrame*)frame_ {
}
- (IBAction)copyGeneratedHTMLAction:(id)sender {
+
+ #pragma unused(sender)
+
[[NSPasteboard generalPasteboard] declareTypes:[NSArray arrayWithObject:NSStringPboardType] owner:nil];
- [[NSPasteboard generalPasteboard] setString:[self markdown2html:[markdownSource string]] forType:NSStringPboardType];
+ [[NSPasteboard generalPasteboard] setString:[ORCDiscount markdown2HTML:[markdownSource string]] forType:NSStringPboardType];
}
@end
View
22 ORCDiscount-Info.plist
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>FMWK</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1</string>
+</dict>
+</plist>
View
18 ORCDiscount/ORCDiscount.h
@@ -0,0 +1,18 @@
+/*
+ * ORCDiscount.h
+ * MarkdownLive
+ *
+ * Created by Jonathan on 09/07/2011.
+ * Copyright 2011 mugginsoft.com. All rights reserved.
+ *
+ */
+#import <Cocoa/Cocoa.h>
+
+@interface ORCDiscount : NSObject {
+}
+
++ (NSString *)markdown2HTML:(NSString *)markdown;
++ (NSString *)HTMLPage:(NSString *)markdownHTML withCSSHTML:(NSString *)cssHTML;
++ (NSString *)HTMLPage:(NSString *)markdownHTML withCSSFromURL:(NSURL *)cssURL;
+
+@end
View
41 ORCDiscount/ORCDiscount.m
@@ -0,0 +1,41 @@
+//
+// ORCDiscount.m
+// MarkdownLive
+//
+// Created by Jonathan on 09/07/2011.
+// Copyright 2011 mugginsoft.com. All rights reserved.
+//
+
+
+#import "ORCDiscount.h"
+#import "discountWrapper.h"
+
+@implementation ORCDiscount
+
++ (NSString *)markdown2HTML:(NSString *)markdown_ {
+ if (!markdown_) {
+ return @"";
+ }
+
+ return discountToHTML(markdown_);
+}
+
++ (NSString *)HTMLPage:(NSString *)markdownHTML withCSSHTML:(NSString *)cssHTML
+{
+ return [NSString stringWithFormat:
+ @"<!DOCTYPE html>\n<html>\n<head>\n<title>%@</title>\n%@</head>\n<body>%@</body>\n</html>",
+ @"Markdown Preview",
+ cssHTML,
+ markdownHTML
+ ];
+}
+
++ (NSString *)HTMLPage:(NSString *)markdownHTML withCSSFromURL:(NSURL *)cssURL
+{
+ NSString *cssHTML = [NSString stringWithFormat:
+ @"<link rel=\"stylesheet\" type=\"text/css\" href=\"%@\">\n",
+ [cssURL absoluteString]
+ ];
+ return [self HTMLPage:markdownHTML withCSSHTML:cssHTML];
+}
+@end
View
8 README.md
@@ -0,0 +1,8 @@
+## MarkdownLive
+
+A Cocoa markdown preview editor using [Discount][discount].
+
+Implements the ORCDiscount framework.
+
+
+[discount]: https://github.com/Orc/discount
View
12 discount_wrappers/Discount.h
@@ -0,0 +1,12 @@
+/*
+ * Discount.h
+ * MarkdownLive
+ *
+ * Created by Jonathan on 09/07/2011.
+ * Copyright 2011 mugginsoft.com. All rights reserved.
+ *
+ */
+
+#include "markdownWrapper.h"
+#include "mkdioWrapper.h"
+#include "discountWrapper.h"

0 comments on commit 36691b0

Please sign in to comment.
Something went wrong with that request. Please try again.