Permalink
Browse files

Remove files unnecessary for production.

  • Loading branch information...
1 parent 27c2edc commit ac9cf05a6112c9cf85f31d0c41bd1ac28cca27aa @danielctull committed Dec 15, 2010
Showing with 0 additions and 2,323 deletions.
  1. +0 −8 .gitignore
  2. +0 −19 DTGridView Project/Classes/DTGridViewAppDelegate.h
  3. +0 −108 DTGridView Project/Classes/DTGridViewAppDelegate.m
  4. +0 −18 DTGridView Project/Classes/DTGridViewExampleDataSourceAndDelegate.h
  5. +0 −169 DTGridView Project/Classes/DTGridViewExampleDataSourceAndDelegate.m
  6. +0 −16 DTGridView Project/Classes/DTInfiniteGridViewExampleViewController.h
  7. +0 −93 DTGridView Project/Classes/DTInfiniteGridViewExampleViewController.m
  8. +0 −377 DTGridView Project/Classes/DTSnapGridViewExampleCellView.xib
  9. +0 −228 DTGridView Project/Classes/DTSnapGridViewExampleView.xib
  10. +0 −18 DTGridView Project/Classes/DTSnapGridViewExampleViewController.h
  11. +0 −76 DTGridView Project/Classes/DTSnapGridViewExampleViewController.m
  12. +0 −40 DTGridView Project/DTGridView-Info.plist
  13. +0 −367 DTGridView Project/DTGridView.xcodeproj/project.pbxproj
  14. +0 −6 DTGridView Project/DTGridView.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  15. +0 −8 DTGridView Project/DTGridView_Prefix.pch
  16. BIN DTGridView Project/Icon.png
  17. +0 −385 DTGridView Project/License Agreement/DTLicenseAgreementView.xib
  18. +0 −18 DTGridView Project/License Agreement/DTLicenseAgreementViewController.h
  19. +0 −59 DTGridView Project/License Agreement/DTLicenseAgreementViewController.m
  20. +0 −51 DTGridView Project/License Agreement/license.html
  21. +0 −191 DTGridView Project/MainWindow.xib
  22. +0 −17 DTGridView Project/main.m
  23. +0 −51 Readme.textile
View
@@ -1,8 +0,0 @@
-.DS_Store
-*.pbxuser
-*perspectivev3
-*.mode1v3
-*.mode2v3
-
-*.xcuserstate
-*.xcbkptlist
@@ -1,19 +0,0 @@
-//
-// DTGridViewAppDelegate.h
-// DTGridView
-//
-// Created by Daniel Tull on 10.02.2010.
-// Copyright Daniel Tull 2010. All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-
-@interface DTGridViewAppDelegate : NSObject <UIApplicationDelegate, UITableViewDataSource, UITableViewDelegate> {
- UIWindow *window;
- UINavigationController *navigationController;
-}
-
-@property (nonatomic, retain) IBOutlet UIWindow *window;
-
-@end
-
@@ -1,108 +0,0 @@
-//
-// DTGridViewAppDelegate.m
-// DTGridView
-//
-// Created by Daniel Tull on 10.02.2010.
-// Copyright Daniel Tull 2010. All rights reserved.
-//
-
-#import "DTGridViewAppDelegate.h"
-#import "DTGridViewExampleDataSourceAndDelegate.h"
-#import "DTInfiniteGridViewExampleViewController.h"
-#import "DTSnapGridViewExampleViewController.h"
-#import "DTLicenseAgreementViewController.h"
-@implementation DTGridViewAppDelegate
-
-@synthesize window;
-
-
-- (void)applicationDidFinishLaunching:(UIApplication *)application {
-
- UITableViewController *vc = [[UITableViewController alloc] initWithStyle:UITableViewStyleGrouped];
-
- navigationController = [[UINavigationController alloc] initWithRootViewController:vc];
-
- vc.title = @"DTGridView";
- vc.tableView.delegate = self;
- vc.tableView.dataSource = self;
- [vc release];
-
- [window addSubview:navigationController.view];
-
- // Override point for customization after application launch
- [window makeKeyAndVisible];
-}
-
-
-- (void)dealloc {
- [navigationController release];
- [window release];
- [super dealloc];
-}
-
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
- return 3;
-}
-
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
-
- if (section == 0) return 1;
- if (section == 1) return 3;
-
- return 0;
-}
-
-- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section {
- if (section == 0) return @"Please attribute me when using my source code by linking to my website. Thank you.";
- if (section == 2) return @"©2008-2010 Daniel Tull\nwww.danieltull.co.uk";
-
- return nil;
-}
-
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
-
- UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
-
- if (!cell)
- cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"cell"] autorelease];
-
- cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
-
- NSString *cellText = nil;
-
- if (indexPath.section == 0 && indexPath.row == 0)
- cellText = @"Source License";
- else if (indexPath.section == 1 && indexPath.row == 0)
- cellText = @"DTGridView";
- else if (indexPath.section == 1 && indexPath.row == 1)
- cellText = @"DTInfiniteGridView";
- else if (indexPath.section == 1 && indexPath.row == 2)
- cellText = @"DTSnapGridView";
-
- cell.textLabel.text = cellText;
-
- return cell;
-}
-
-- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
-
- if (indexPath.section == 0 && indexPath.row == 0) {
- DTLicenseAgreementViewController *vc = [[DTLicenseAgreementViewController alloc] init];
- [navigationController pushViewController:vc animated:YES];
- [vc release];
- } else if (indexPath.section == 1 && indexPath.row == 0) {
- DTGridViewExampleDataSourceAndDelegate *vc = [[DTGridViewExampleDataSourceAndDelegate alloc] init];
- [navigationController pushViewController:vc animated:YES];
- [vc release];
- } else if (indexPath.section == 1 && indexPath.row == 1) {
- DTInfiniteGridViewExampleViewController *vc = [[DTInfiniteGridViewExampleViewController alloc] init];
- [navigationController pushViewController:vc animated:YES];
- [vc release];
- } else if (indexPath.section == 1 && indexPath.row == 2) {
- DTSnapGridViewExampleViewController *vc = [[DTSnapGridViewExampleViewController alloc] init];
- [navigationController pushViewController:vc animated:YES];
- [vc release];
- }
-}
-
-@end
@@ -1,18 +0,0 @@
-//
-// DTGridViewExampleDataSourceAndDelegate.h
-// DTKit
-//
-// Created by Daniel Tull on 19.04.2009.
-// Copyright 2009 Daniel Tull. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import "DTGridViewController.h"
-
-@interface DTGridViewExampleDataSourceAndDelegate : DTGridViewController <UIPickerViewDataSource, UIPickerViewDelegate> {
- NSArray *colours;
- UIPickerView *pickerView;
- UINavigationBar *navBar;
-}
-
-@end
@@ -1,169 +0,0 @@
-//
-// DTGridViewExampleDataSourceAndDelegate.m
-// DTKit
-//
-// Created by Daniel Tull on 19.04.2009.
-// Copyright 2009 Daniel Tull. All rights reserved.
-//
-
-#import "DTGridViewExampleDataSourceAndDelegate.h"
-
-@implementation DTGridViewExampleDataSourceAndDelegate
-
-- (id)init {
- if (![super init])
- return nil;
-
- colours = [[NSArray alloc] initWithObjects:
- [UIColor redColor],
- [UIColor blueColor],
- [UIColor greenColor],
- [UIColor magentaColor],
- [UIColor yellowColor],
- [UIColor whiteColor],
- [UIColor grayColor],
- [UIColor lightGrayColor],
- [UIColor purpleColor],
- [UIColor orangeColor],
- nil];
-
- return self;
-}
-
-- (void)dealloc {
- [pickerView release];
- [navBar release];
- [colours release];
- [super dealloc];
-}
-
-- (void)viewDidLoad {
- [super viewDidLoad];
- self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Scroll" style:UIBarButtonItemStyleBordered target:self action:@selector(scroll)] autorelease];
- self.title = @"DTGridView";
- self.gridView.delegate = self;
- self.gridView.dataSource = self;
- self.gridView.bounces = YES;
-}
-
-- (void)scroll {
-
- if (!pickerView)
- pickerView = [[UIPickerView alloc] init];
-
- if (!navBar)
- navBar = [[UINavigationBar alloc] initWithFrame:self.navigationController.navigationBar.frame];
-
-// navBar.title = @"Scroll GridView";
-
- navBar.barStyle = UIBarStyleBlack;
- UINavigationItem *item = [[UINavigationItem alloc] initWithTitle:@"Scroll GridView"];
- item.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Scroll To" style:UIBarButtonItemStylePlain target:self action:@selector(scrollTo)] autorelease];
- item.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Done" style:UIBarButtonItemStyleDone target:self action:@selector(endScrolling)] autorelease];
- [navBar pushNavigationItem:item animated:NO];
- [item release];
- [self.navigationController.navigationBar.superview insertSubview:navBar belowSubview:self.navigationController.navigationBar];
-
- pickerView.dataSource = self;
- pickerView.delegate = self;
- [self.view addSubview:pickerView];
- pickerView.frame = CGRectMake(self.view.frame.origin.x, self.view.frame.origin.y - pickerView.frame.size.height, pickerView.frame.size.width, pickerView.frame.size.height);
-
- [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque animated:NO];
-
- [UIView beginAnimations:@"pickerShow" context:nil];
- self.gridView.contentInset = UIEdgeInsetsMake(pickerView.frame.size.height, 0, 0, 0);//(self.gridView.frame.origin.x, self.gridView.frame.origin.y + pickerView.frame.size.height, self.gridView.frame.size.width, self.gridView.frame.size.height - pickerView.frame.size.height);
- self.gridView.scrollIndicatorInsets = UIEdgeInsetsMake(pickerView.frame.size.height, 0, 0, 0);
-
- //self.gridView.frame = CGRectMake(self.gridView.frame.origin.x, self.gridView.frame.origin.y + pickerView.frame.size.height, self.gridView.frame.size.width, self.gridView.frame.size.height - pickerView.frame.size.height);
- self.navigationController.navigationBar.frame = CGRectMake(self.navigationController.navigationBar.frame.origin.x, self.navigationController.navigationBar.frame.origin.y - self.navigationController.navigationBar.frame.size.height, self.navigationController.navigationBar.frame.size.width, self.navigationController.navigationBar.frame.size.height);
- pickerView.frame = CGRectMake(self.view.frame.origin.x, self.view.frame.origin.y, pickerView.frame.size.width, pickerView.frame.size.height);
-
- [UIView commitAnimations];
-
- //[self.gridView scrollViewToRow:1 column:1 scrollPosition:DTGridViewScrollPositionNone animated:YES];
-}
-
-- (void)scrollTo {
- [self.gridView scrollViewToRow:[pickerView selectedRowInComponent:0] column:[pickerView selectedRowInComponent:1] scrollPosition:DTGridViewScrollPositionNone animated:YES];
-}
-
-
-- (void)endScrolling {
- [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:NO];
- [UIView beginAnimations:@"pickerHide" context:nil];
- self.gridView.contentInset = UIEdgeInsetsZero;
- self.gridView.scrollIndicatorInsets = UIEdgeInsetsZero;
-
- self.navigationController.navigationBar.frame = CGRectMake(self.navigationController.navigationBar.frame.origin.x, self.navigationController.navigationBar.frame.origin.y + self.navigationController.navigationBar.frame.size.height, self.navigationController.navigationBar.frame.size.width, self.navigationController.navigationBar.frame.size.height);
- pickerView.frame = CGRectMake(self.view.frame.origin.x, self.view.frame.origin.y - pickerView.frame.size.height, pickerView.frame.size.width, pickerView.frame.size.height);
- //self.gridView.frame = CGRectMake(self.gridView.frame.origin.x, self.gridView.frame.origin.y - pickerView.frame.size.height, self.gridView.frame.size.width, self.gridView.frame.size.height + pickerView.frame.size.height);
- [UIView commitAnimations];
-}
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- // Return YES for supported orientations
- return YES;
-}
-
-#pragma mark -
-#pragma mark UIPickerViewDelegate methods
-
-- (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component {
- return 100.0;
-}
-
-- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView {
- return 2;
-}
-
-- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component {
- return 25;
-}
-
-- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component {
- return [NSString stringWithFormat:@"%i", row];
-}
-
-#pragma mark -
-#pragma mark DTGridViewDataSource methods
-
-- (NSInteger)numberOfRowsInGridView:(DTGridView *)gridView {
- return 25;
-}
-- (NSInteger)numberOfColumnsInGridView:(DTGridView *)gridView forRowWithIndex:(NSInteger)index {
- return 25;
-}
-
-- (CGFloat)gridView:(DTGridView *)gridView heightForRow:(NSInteger)rowIndex {
- return 100.0;
-}
-- (CGFloat)gridView:(DTGridView *)gridView widthForCellAtRow:(NSInteger)rowIndex column:(NSInteger)columnIndex {
- return 100.0;
-}
-
-- (DTGridViewCell *)gridView:(DTGridView *)gv viewForRow:(NSInteger)rowIndex column:(NSInteger)columnIndex {
-
- DTGridViewCell *cell = [gv dequeueReusableCellWithIdentifier:@"cell"];
-
- if (!cell) {
- cell = [[[DTGridViewCell alloc] initWithReuseIdentifier:@"cell"] autorelease];
- }
-
- cell.backgroundColor = [colours objectAtIndex:(random() % 10)];
-
- return cell;
-}
-
-#pragma mark -
-#pragma mark DTGridViewDelegate methods
-
-- (void)gridView:(DTGridView *)gv selectionMadeAtRow:(NSInteger)rowIndex column:(NSInteger)columnIndex {
- NSLog(@"%@:%s %@", self, _cmd, [gv cellForRow:rowIndex column:columnIndex]);
-
-}
-
-- (void)gridView:(DTGridView *)gridView scrolledToEdge:(DTGridViewEdge)edge {
-}
-
-@end
@@ -1,16 +0,0 @@
-//
-// DTInfiniteGridViewExampleViewController.h
-// DTKit
-//
-// Created by Daniel Tull on 11.08.2009.
-// Copyright 2009 Daniel Tull. All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-#import "DTInfiniteGridView.h"
-
-@interface DTInfiniteGridViewExampleViewController : UIViewController <DTGridViewDelegate, DTGridViewDataSource> {
- DTInfiniteGridView *gridView;
-}
-
-@end
Oops, something went wrong.

0 comments on commit ac9cf05

Please sign in to comment.