Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added pl-blocks framework

  • Loading branch information...
commit 798dae82f40accf18ab0b18545457e0f3385541e 1 parent e831d6c
@jashmenn authored
View
1  Frameworks/PLBlocks.framework/Headers
View
1  Frameworks/PLBlocks.framework/PLBlocks
View
1  Frameworks/PLBlocks.framework/Resources
View
122 Frameworks/PLBlocks.framework/Versions/A/Headers/Block.h
@@ -0,0 +1,122 @@
+/*
+ * Copyright 2008 - 2009 Apple, Inc.
+ * Copyright 2009 - 2010 Plausible Labs Cooperative, Inc.
+ *
+ * All rights reserved.
+ *
+ * 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.
+ */
+
+/**
+ * @defgroup functions Functions Reference
+ */
+
+/**
+ * @internal
+ * @defgroup private_api Private API Reference
+ */
+
+/**
+ * @defgroup private_api_constants Constants
+ * @ingroup private_api
+ */
+
+/**
+ * @defgroup constants Constants Reference
+ */
+
+/**
+ * @defgroup types Types Reference
+ */
+
+/**
+ * @defgroup enums Enumerations
+ * @ingroup constants
+ */
+
+/**
+ * @defgroup globals Global Variables
+ * @ingroup constants
+ */
+
+/**
+ * @defgroup exceptions Exceptions
+ * @ingroup constants
+ */
+
+#ifndef _PLBLOCK_H_
+#define _PLBLOCK_H_
+
+#if !defined(BLOCK_EXPORT)
+# if defined(__cplusplus)
+# define BLOCK_EXPORT extern "C"
+# else
+# define BLOCK_EXPORT extern
+# endif
+#endif
+
+#include <AvailabilityMacros.h>
+#include <TargetConditionals.h>
+
+/* Compatibility defines. Using the PLBlock_* variants instead is recommended. */
+#undef Block_copy
+#define Block_copy(...) ((__typeof(__VA_ARGS__))_PLBlock_copy((const void *)(__VA_ARGS__)))
+
+#undef Block_release
+#define Block_release(...) _PLBlock_release((const void *)(__VA_ARGS__))
+
+#if __cplusplus
+extern "C" {
+#endif
+
+ // Create a heap based copy of a Block or simply add a reference to an existing one.
+ // This must be paired with Block_release to recover memory, even when running
+ // under Objective-C Garbage Collection.
+ BLOCK_EXPORT void *_PLBlock_copy(const void *aBlock);
+
+ // Lose the reference, and if heap based and last reference, recover the memory
+ BLOCK_EXPORT void _PLBlock_release(const void *aBlock);
+
+#if __cplusplus
+}
+#endif
+
+// Type correct macros
+
+/**
+ * @ingroup functions
+ * @{
+ */
+
+/**
+ * Copy a a stack-allocated block.
+ */
+#define PLBlock_copy(...) ((__typeof(__VA_ARGS__))_PLBlock_copy((const void *)(__VA_ARGS__)))
+
+/**
+ * Release a block instance.
+ */
+#define PLBlock_release(...) _PLBlock_release((const void *)(__VA_ARGS__))
+
+/**
+ * @} functions
+ */
+
+#endif /* _PLBLOCK_H_ */
View
BIN  Frameworks/PLBlocks.framework/Versions/A/PLBlocks
Binary file not shown
View
22 Frameworks/PLBlocks.framework/Versions/A/Resources/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>PLBlocks</string>
+ <key>CFBundleIdentifier</key>
+ <string>coop.plausible.blocks.PLBlocks</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
1  Frameworks/PLBlocks.framework/Versions/Current
View
22 shapes-panels.xcodeproj/project.pbxproj
@@ -13,6 +13,7 @@
433BD84A1201C73F0025525E /* NMPanelMenuItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 433BD8491201C73F0025525E /* NMPanelMenuItem.m */; };
434F461C11FB2F9400603A4D /* libcocos2d.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 434F45A311FB2F6A00603A4D /* libcocos2d.a */; };
4365CA5C120A6AFB00E598B9 /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4365CA5B120A6AFB00E598B9 /* MediaPlayer.framework */; };
+ 436AEF9A1243C3C70010824E /* PLBlocks.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 436AEF991243C3C70010824E /* PLBlocks.framework */; };
4379A70B12125BBA00256487 /* libFontLabel.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 434F45AB11FB2F6A00603A4D /* libFontLabel.a */; };
43A94B471222B5990030A3BA /* HCUPPanelScene.m in Sources */ = {isa = PBXBuildFile; fileRef = 43A94B461222B5990030A3BA /* HCUPPanelScene.m */; };
43A94B5E1222B87D0030A3BA /* CocosOverlayScrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = 43A94B5D1222B87D0030A3BA /* CocosOverlayScrollView.m */; };
@@ -543,6 +544,7 @@
433BD8491201C73F0025525E /* NMPanelMenuItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NMPanelMenuItem.m; sourceTree = "<group>"; };
434F449111FB2F6100603A4D /* cocos2d-iphone.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = "cocos2d-iphone.xcodeproj"; sourceTree = COCOS2D_SRC; };
4365CA5B120A6AFB00E598B9 /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; };
+ 436AEF991243C3C70010824E /* PLBlocks.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = PLBlocks.framework; path = Frameworks/PLBlocks.framework; sourceTree = "<group>"; };
436B00F011FFB124007B2F00 /* SynthesizeSingleton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SynthesizeSingleton.h; path = Classes/Other/SynthesizeSingleton.h; sourceTree = "<group>"; };
43A94B451222B5990030A3BA /* HCUPPanelScene.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HCUPPanelScene.h; sourceTree = "<group>"; };
43A94B461222B5990030A3BA /* HCUPPanelScene.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HCUPPanelScene.m; sourceTree = "<group>"; };
@@ -592,6 +594,7 @@
506EDB88102F4C4000A389B3 /* libz.dylib in Frameworks */,
506EDBA5102F4C9F00A389B3 /* AVFoundation.framework in Frameworks */,
4365CA5C120A6AFB00E598B9 /* MediaPlayer.framework in Frameworks */,
+ 436AEF9A1243C3C70010824E /* PLBlocks.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -634,6 +637,7 @@
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
isa = PBXGroup;
children = (
+ 436AEF991243C3C70010824E /* PLBlocks.framework */,
4365CA5B120A6AFB00E598B9 /* MediaPlayer.framework */,
DCCBF1B60F6022AE0040855A /* CoreGraphics.framework */,
DCCBF1B80F6022AE0040855A /* Foundation.framework */,
@@ -1375,6 +1379,10 @@
CODE_SIGN_ENTITLEMENTS = "";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "\"$(SRCROOT)/Frameworks\"",
+ );
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_OPTIMIZATION_LEVEL = 0;
@@ -1402,6 +1410,10 @@
CODE_SIGN_ENTITLEMENTS = "";
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "\"$(SRCROOT)/Frameworks\"",
+ );
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = shapes_Prefix.pch;
@@ -1433,15 +1445,16 @@
);
"GCC_THUMB_SUPPORT[arch=armv6]" = NO;
"GCC_THUMB_SUPPORT[arch=armv7]" = YES;
+ GCC_VERSION = coop.plausible.blocks.compilers.gcc.4_2;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
GENERATE_PROFILING_CODE = NO;
- IPHONEOS_DEPLOYMENT_TARGET = 3.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 3.2;
ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
PRODUCT_DISPLAY_NAME = "Panels Example";
PRODUCT_NAME = PanelsExample;
- SDKROOT = iphonesimulator4.0;
+ SDKROOT = iphoneos4.1;
};
name = Debug;
};
@@ -1455,14 +1468,15 @@
"GCC_THUMB_SUPPORT[arch=armv6]" = NO;
"GCC_THUMB_SUPPORT[arch=armv7]" = YES;
GCC_UNROLL_LOOPS = YES;
+ GCC_VERSION = coop.plausible.blocks.compilers.gcc.4_2;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- IPHONEOS_DEPLOYMENT_TARGET = 3.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 3.2;
PREBINDING = NO;
PRODUCT_DISPLAY_NAME = "Panels Example";
PRODUCT_NAME = PanelsExample;
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "900B900D-7DCE-4A81-ABB9-70869F87CB96";
- SDKROOT = iphoneos3.2;
+ SDKROOT = iphoneos4.1;
};
name = Release;
};
Please sign in to comment.
Something went wrong with that request. Please try again.