Permalink
Browse files

Changed OHGridView back to standard library instead of static framewo…

…rk. Updated README accordingly.

(easier to include as a dependency project in an Xcode4 workspace that makes such things easier now)
  • Loading branch information...
1 parent 8f8f9f8 commit 8e7f1ffb529475f22779f64b8da4894b266bdf53 @AliSoftware committed Sep 9, 2012
@@ -7,7 +7,7 @@
//
#import <UIKit/UIKit.h>
-#import <OHGridView/OHGridView.h>
+#import "OHGridView.h"
@interface GridViewExampleViewController : UIViewController
<UIAlertViewDelegate, OHGridViewDelegate, OHGridViewDataSource> {
@@ -21,7 +21,7 @@
098D5675123022DA0055E596 /* wallpaper-64x64.png in Resources */ = {isa = PBXBuildFile; fileRef = 098D5668123022DA0055E596 /* wallpaper-64x64.png */; };
098D5676123022DA0055E596 /* weather-64x64.png in Resources */ = {isa = PBXBuildFile; fileRef = 098D5669123022DA0055E596 /* weather-64x64.png */; };
09BAC51712E255DF00C3B95B /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 09BAC51612E255DF00C3B95B /* Icon.png */; };
- 09E8E6F8145315DD00C63E20 /* OHGridView.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 09E8E6F7145315DD00C63E20 /* OHGridView.framework */; };
+ 09F6EC8715FD01D700A493F3 /* libOHGridView.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 09F6EC8615FD01D700A493F3 /* libOHGridView.a */; };
1D3623260D0F684500981E51 /* GridViewExampleAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* GridViewExampleAppDelegate.m */; };
1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; };
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
@@ -47,7 +47,7 @@
098D5668123022DA0055E596 /* wallpaper-64x64.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "wallpaper-64x64.png"; sourceTree = "<group>"; };
098D5669123022DA0055E596 /* weather-64x64.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "weather-64x64.png"; sourceTree = "<group>"; };
09BAC51612E255DF00C3B95B /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = "<group>"; };
- 09E8E6F7145315DD00C63E20 /* OHGridView.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OHGridView.framework; path = ../OHGridView/Products/OHGridView.framework; sourceTree = "<group>"; };
+ 09F6EC8615FD01D700A493F3 /* libOHGridView.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libOHGridView.a; sourceTree = BUILT_PRODUCTS_DIR; };
1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
1D3623240D0F684500981E51 /* GridViewExampleAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GridViewExampleAppDelegate.h; sourceTree = "<group>"; };
1D3623250D0F684500981E51 /* GridViewExampleAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GridViewExampleAppDelegate.m; sourceTree = "<group>"; };
@@ -68,10 +68,10 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 09F6EC8715FD01D700A493F3 /* libOHGridView.a in Frameworks */,
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */,
- 09E8E6F8145315DD00C63E20 /* OHGridView.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -121,6 +121,7 @@
isa = PBXGroup;
children = (
080E96DDFE201D6D7F000001 /* Classes */,
+ 09F6EC8615FD01D700A493F3 /* libOHGridView.a */,
29B97315FDCFA39411CA2CEA /* Other Sources */,
29B97317FDCFA39411CA2CEA /* Resources */,
29B97323FDCFA39411CA2CEA /* Frameworks */,
@@ -153,7 +154,6 @@
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
isa = PBXGroup;
children = (
- 09E8E6F7145315DD00C63E20 /* OHGridView.framework */,
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
1D30AB110D05D00D00671497 /* Foundation.framework */,
288765A40DF7441C002DB57D /* CoreGraphics.framework */,
@@ -251,45 +251,40 @@
1D6058940D05DD3E006BFB54 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_OBJC_ARC = YES;
COPY_PHASE_STRIP = NO;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "\"$(SRCROOT)/../OHGridView/Products\"",
- );
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = GridViewExample_Prefix.pch;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = "GridViewExample-Info.plist";
+ LIBRARY_SEARCH_PATHS = "${TARGET_BUILD_DIR}/**";
PRODUCT_NAME = GridViewExample;
+ USER_HEADER_SEARCH_PATHS = "${SRCROOT}/../OHGridView/**";
};
name = Debug;
};
1D6058950D05DD3E006BFB54 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_OBJC_ARC = YES;
COPY_PHASE_STRIP = YES;
- FRAMEWORK_SEARCH_PATHS = (
- "$(inherited)",
- "\"$(SRCROOT)/../OHGridView/Products\"",
- );
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = GridViewExample_Prefix.pch;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = "GridViewExample-Info.plist";
+ LIBRARY_SEARCH_PATHS = "${TARGET_BUILD_DIR}/**";
PRODUCT_NAME = GridViewExample;
+ USER_HEADER_SEARCH_PATHS = "${SRCROOT}/../OHGridView/**";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
C01FCF4F08A954540054247B /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_ENABLE_OBJC_ARC = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
@@ -305,6 +300,7 @@
C01FCF5008A954540054247B /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CLANG_ENABLE_OBJC_ARC = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";

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

Oops, something went wrong.
View
@@ -1,11 +1,7 @@
-Without any further information, all the sources provided here are under the MIT License
-quoted below.
-
-Anyway, please contact me by email (olivier.halligon+ae@gmail.com) if you plan to use my work and the provided classes
-in your own software. Thanks.
-
/***********************************************************************************
+ * The OHGridView library is under the MIT License quoted below:
+ ***********************************************************************************
*
* Copyright (c) 2010 Olivier Halligon
*
@@ -27,9 +23,4 @@ in your own software. Thanks.
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
- ***********************************************************************************
- *
- * Any comment or suggestion welcome. Referencing this project in your AboutBox is appreciated.
- * Please tell me if you use this class so we can cross-reference our projects.
- *
- ***********************************************************************************/
+ ***********************************************************************************/
View
@@ -1,29 +1,26 @@
/***********************************************************************************
+ * The OHGridView library is under the MIT License quoted below:
+ ***********************************************************************************
*
* Copyright (c) 2010 Olivier Halligon
- *
+ *
* 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.
- *
- ***********************************************************************************
- *
- * Any comment or suggestion welcome. Referencing this project in your AboutBox is appreciated.
- * Please tell me if you use this class so we can cross-reference our projects.
*
***********************************************************************************/
@@ -47,7 +44,6 @@
/////////////////////////////////////////////////////////////////////////////
#pragma mark - OHGridView Delegate & DataSource Protocols
-
@class OHGridView;
@protocol OHGridViewDataSource
@@ -62,16 +58,19 @@
-(void)gridView:(OHGridView*)aGridView didSelectCellAtIndexPath:(NSIndexPath*)indexPath;
@end
+
+
+
/////////////////////////////////////////////////////////////////////////////
#pragma mark - OHGridView Interface
@interface OHGridView : UIScrollView
-(OHGridViewCell*)dequeueReusableCell;
-(void)reloadData;
-//! Identical to set indexPathForSelectedRow to nil
--(void)deselectSelectedCellsAnimated:(BOOL)animated;
-(void)setIndexPathForSelectedCell:(NSIndexPath *)indexPath animated:(BOOL)animated;
@property(nonatomic,retain) NSIndexPath* indexPathForSelectedCell;
+//! Identical to set indexPathForSelectedRow to nil
+-(void)deselectSelectedCellsAnimated:(BOOL)animated;
//! Commodity method to return indexPath.section+columnsCount*indexPath.row (or -1 if nil)
-(NSInteger)indexForIndexPath:(NSIndexPath*)indexPath;
View
@@ -1,9 +1,28 @@
-//
-// OHGridView.m
-//
-// Created by Olivier on 02/09/10.
-// Copyright 2010 AliSoftware. All rights reserved.
-//
+/***********************************************************************************
+ * The OHGridView library is under the MIT License quoted below:
+ ***********************************************************************************
+ *
+ * Copyright (c) 2010 Olivier Halligon
+ *
+ * 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.
+ *
+ ***********************************************************************************/
#import "OHGridView.h"
Oops, something went wrong.

0 comments on commit 8e7f1ff

Please sign in to comment.