Permalink
Browse files

Moved SSCatalog to its own repository

  • Loading branch information...
1 parent 02bc676 commit 188e52f089589d86716efc29e16e54bd2c2abc56 @soffes committed Oct 22, 2011
Showing with 1 addition and 7,415 deletions.
  1. +1 −1 Readme.markdown
  2. +0 −13 SSCatalog/Classes/SCAddressBarDemoViewController.h
  3. +0 −157 SSCatalog/Classes/SCAddressBarDemoViewController.m
  4. +0 −14 SSCatalog/Classes/SCAppDelegate.h
  5. +0 −51 SSCatalog/Classes/SCAppDelegate.m
  6. +0 −13 SSCatalog/Classes/SCBadgeTableViewCellDemoViewController.h
  7. +0 −116 SSCatalog/Classes/SCBadgeTableViewCellDemoViewController.m
  8. +0 −13 SSCatalog/Classes/SCCollectionViewDemoViewController.h
  9. +0 −100 SSCatalog/Classes/SCCollectionViewDemoViewController.m
  10. +0 −16 SSCatalog/Classes/SCGradientViewDemoViewController.h
  11. +0 −102 SSCatalog/Classes/SCGradientViewDemoViewController.m
  12. +0 −16 SSCatalog/Classes/SCHUDViewDemoViewController.h
  13. +0 −71 SSCatalog/Classes/SCHUDViewDemoViewController.m
  14. +0 −15 SSCatalog/Classes/SCImageCollectionViewItem.h
  15. +0 −54 SSCatalog/Classes/SCImageCollectionViewItem.m
  16. +0 −13 SSCatalog/Classes/SCLineViewDemoViewController.h
  17. +0 −57 SSCatalog/Classes/SCLineViewDemoViewController.m
  18. +0 −13 SSCatalog/Classes/SCLoadingViewDemoViewController.h
  19. +0 −43 SSCatalog/Classes/SCLoadingViewDemoViewController.m
  20. +0 −15 SSCatalog/Classes/SCPickerDemoViewController.h
  21. +0 −99 SSCatalog/Classes/SCPickerDemoViewController.m
  22. +0 −10 SSCatalog/Classes/SCPickerDetailViewController.h
  23. +0 −54 SSCatalog/Classes/SCPickerDetailViewController.m
  24. +0 −15 SSCatalog/Classes/SCPieProgressViewDemoViewController.h
  25. +0 −102 SSCatalog/Classes/SCPieProgressViewDemoViewController.m
  26. +0 −11 SSCatalog/Classes/SCRootViewController.h
  27. +0 −125 SSCatalog/Classes/SCRootViewController.m
  28. +0 −15 SSCatalog/Classes/SCSegmentedControlDemoViewController.h
  29. +0 −100 SSCatalog/Classes/SCSegmentedControlDemoViewController.m
  30. +0 −14 SSCatalog/Classes/SCSwitchDemoViewController.h
  31. +0 −97 SSCatalog/Classes/SCSwitchDemoViewController.m
  32. +0 −13 SSCatalog/Classes/SSRatingDemoViewController.h
  33. +0 −27 SSCatalog/Classes/SSRatingDemoViewController.m
  34. +0 −14 SSCatalog/Other Sources/SSCatalog_Prefix.pch
  35. +0 −15 SSCatalog/Other Sources/main.m
  36. BIN SSCatalog/Resources/Default-Landscape~ipad.png
  37. BIN SSCatalog/Resources/Default-Portrait~ipad.png
  38. BIN SSCatalog/Resources/Default.png
  39. BIN SSCatalog/Resources/Default@2x.png
  40. BIN SSCatalog/Resources/Icon-114.png
  41. BIN SSCatalog/Resources/Icon-29.png
  42. BIN SSCatalog/Resources/Icon-48.png
  43. BIN SSCatalog/Resources/Icon-72.png
  44. BIN SSCatalog/Resources/Icon.png
  45. +0 −59 SSCatalog/Resources/SSCatalog-Info.plist
  46. BIN SSCatalog/Resources/SamLogo.png
  47. BIN SSCatalog/Resources/SamLogo@2x.png
  48. BIN SSCatalog/Resources/iTunesArtwork
  49. +0 −611 SSCatalog/SSCatalog.xcodeproj/project.pbxproj
  50. +0 −65 SSCatalog/Vendor/AFNetworking/AFHTTPRequestOperation.h
  51. +0 −391 SSCatalog/Vendor/AFNetworking/AFHTTPRequestOperation.m
  52. +0 −39 SSCatalog/Vendor/AFNetworking/AFImageCache.h
  53. +0 −61 SSCatalog/Vendor/AFNetworking/AFImageCache.m
  54. +0 −42 SSCatalog/Vendor/AFNetworking/AFImageRequestOperation.h
  55. +0 −90 SSCatalog/Vendor/AFNetworking/AFImageRequestOperation.m
  56. +0 −43 SSCatalog/Vendor/AFNetworking/AFJSONRequestOperation.h
  57. +0 −131 SSCatalog/Vendor/AFNetworking/AFJSONRequestOperation.m
  58. +0 −35 SSCatalog/Vendor/AFNetworking/AFNetworkActivityIndicatorManager.h
  59. +0 −62 SSCatalog/Vendor/AFNetworking/AFNetworkActivityIndicatorManager.m
  60. +0 −91 SSCatalog/Vendor/AFNetworking/AFRestClient.h
  61. +0 −193 SSCatalog/Vendor/AFNetworking/AFRestClient.m
  62. +0 −33 SSCatalog/Vendor/AFNetworking/NSData+AFNetworking.h
  63. +0 −130 SSCatalog/Vendor/AFNetworking/NSData+AFNetworking.m
  64. +0 −33 SSCatalog/Vendor/AFNetworking/NSMutableURLRequest+AFNetworking.h
  65. +0 −76 SSCatalog/Vendor/AFNetworking/NSMutableURLRequest+AFNetworking.m
  66. +0 −30 SSCatalog/Vendor/AFNetworking/NSString+AFNetworking.h
  67. +0 −38 SSCatalog/Vendor/AFNetworking/NSString+AFNetworking.m
  68. +0 −28 SSCatalog/Vendor/AFNetworking/UIImage+AFNetworking.h
  69. +0 −80 SSCatalog/Vendor/AFNetworking/UIImage+AFNetworking.m
  70. +0 −46 SSCatalog/Vendor/AFNetworking/UIImageView+AFNetworking.h
  71. +0 −131 SSCatalog/Vendor/AFNetworking/UIImageView+AFNetworking.m
  72. +0 −251 SSCatalog/Vendor/JSONKit/JSONKit.h
  73. +0 −3,022 SSCatalog/Vendor/JSONKit/JSONKit.m
View
@@ -68,7 +68,7 @@ For usage instructions, see [the usage guide on the SSToolkit website](http://ss
## Demo
-[SSCatalog](https://github.com/samsoffes/sstoolkit/tree/master/SSCatalog) is included with SSToolkit. There is an iPhone application target and an universal iPad/iPhone application target to demonstrate the various features of SSToolkit.
+[SSCatalog](https://github.com/samsoffes/sscatalog) is an example application of various SSToolkit features. It is an universal iPad/iPhone application.
## Links
@@ -1,13 +0,0 @@
-//
-// SCAddressBarDemoViewController.h
-// SSCatalog
-//
-// Created by Sam Soffes on 2/8/11.
-// Copyright 2011 Sam Soffes. All rights reserved.
-//
-
-@interface SCAddressBarDemoViewController : UIViewController <UITextFieldDelegate, SSWebViewDelegate>
-
-+ (NSString *)title;
-
-@end
@@ -1,157 +0,0 @@
-//
-// SCAddressBarDemoViewController.m
-// SSCatalog
-//
-// Created by Sam Soffes on 2/8/11.
-// Copyright 2011 Sam Soffes. All rights reserved.
-//
-
-#import "SCAddressBarDemoViewController.h"
-
-@implementation SCAddressBarDemoViewController {
- SSGradientView *_headerView;
- UILabel *_titleLabel;
- SSAddressBarTextField *_addressBar;
- SSWebView *_webView;
-}
-
-
-#pragma mark - Class Methods
-
-+ (NSString *)title {
- return @"Address bar";
-}
-
-
-#pragma mark - NSObject
-
-- (void)dealloc {
- _webView.delegate = nil;
- [_webView release];
- [_headerView release];
- [_titleLabel release];
- [_addressBar release];
- [super dealloc];
-}
-
-
-#pragma mark - UIViewController
-
-- (void)viewDidLoad {
- [super viewDidLoad];
- self.title = [[self class] title];
- self.view.backgroundColor = [UIColor colorWithRed:0.851f green:0.859f blue:0.882f alpha:1.0f];
-
- CGSize size = self.view.frame.size;
-
- _headerView = [[SSGradientView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, size.width, 58.0f)];
- _headerView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
- _headerView.topColor = [UIColor colorWithWhite:0.957f alpha:1.0f];
- _headerView.bottomColor = [UIColor colorWithWhite:0.827f alpha:1.0f];
- _headerView.bottomBorderColor = [UIColor colorWithWhite:0.369f alpha:1.0f];
-
- _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10.0f, 0.0f, size.width - 20.0f, 21.0f)];
- _titleLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth;
- _titleLabel.backgroundColor = [UIColor clearColor];
- _titleLabel.textColor = [UIColor colorWithWhite:0.404f alpha:1.0f];
- _titleLabel.textAlignment = UITextAlignmentCenter;
- _titleLabel.font = [UIFont boldSystemFontOfSize:12.0f];
- _titleLabel.shadowColor = [UIColor whiteColor];
- _titleLabel.shadowOffset = CGSizeMake(0.0f, 1.0f);
- [_headerView addSubview:_titleLabel];
-
- _addressBar = [[SSAddressBarTextField alloc] initWithFrame:CGRectMake(10.0f, 21.0f, size.width - 20.0f, 31.0f)];
- _addressBar.autoresizingMask = UIViewAutoresizingFlexibleWidth;
- _addressBar.delegate = self;
- [_headerView addSubview:_addressBar];
-
- [self.view addSubview:_headerView];
-
- _webView = [[SSWebView alloc] initWithFrame:CGRectMake(0.0f, 58.0f, size.width, size.height - 58.0f)];
- _webView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
- _webView.scalesPageToFit = YES;
- _webView.delegate = self;
- [self.view addSubview:_webView];
-
- [_addressBar.reloadButton addTarget:_webView action:@selector(reload) forControlEvents:UIControlEventTouchUpInside];
- [_addressBar.stopButton addTarget:_webView action:@selector(stopLoading) forControlEvents:UIControlEventTouchUpInside];
-
- [_webView loadURLString:@"http://samsoff.es"];
-}
-
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
- if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
- return toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;
- }
- return YES;
-}
-
-
-#pragma mark - UITextFieldDelegate
-
-- (void)textFieldDidBeginEditing:(UITextField *)textField {
- [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(_removeGrayView) object:nil];
-
- // Gray Button
-// UIButton *aGrayButton = [UIButton buttonWithType:UIButtonTypeCustom];
-// aGrayButton.frame = _webView.frame;
-// aGrayButton.backgroundColor = [UIColor colorWithRed:0.0f green:0.0f blue:0.0f alpha:0.5f];
-// aGrayButton.alpha = 0.0f;
-// aGrayButton.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
-// [aGrayButton addTarget:textField action:@selector(resignFirstResponder) forControlEvents:UIControlEventTouchDown];
-// self.grayButton = aGrayButton;
-// [self.view addSubview:grayButton];
-// [grayButton fadeIn];
-}
-
-
-- (void)textFieldDidEndEditing:(UITextField *)textField {
-// [self performSelector:@selector(_removeGrayView) withObject:nil afterDelay:0.1];
-}
-
-
-- (BOOL)textFieldShouldReturn:(UITextField *)textField {
- [_webView loadURLString:textField.text];
- [textField resignFirstResponder];
- return YES;
-}
-
-
-#pragma mark - SSWebViewDelegate
-
-- (void)webViewDidStartLoadingPage:(SSWebView *)aWebView {
- _addressBar.loading = YES;
- [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
-
- NSString *urlString = [[[_webView lastRequest] mainDocumentURL] absoluteString];
-
- static NSRegularExpression *regularExpression = nil;
- if (!regularExpression) {
- regularExpression = [[NSRegularExpression alloc] initWithPattern:@"^https?://" options:NSRegularExpressionCaseInsensitive error:nil];
- }
-
- NSString *addressBarUrlString = [regularExpression stringByReplacingMatchesInString:urlString options:0 range:NSMakeRange(0, [urlString length]) withTemplate:@""];
- _addressBar.text = addressBarUrlString;
- _titleLabel.text = urlString;
-}
-
-
-- (void)webViewDidFinishLoadingPage:(SSWebView *)aWebView {
- _addressBar.loading = NO;
- [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
-
- NSString *title = [_webView stringByEvaluatingJavaScriptFromString:@"document.title"];
- if (title) {
- _titleLabel.text = title;
- }
-}
-
-
-- (void)webView:(SSWebView *)aWebView didFailLoadWithError:(NSError *)error {
- _addressBar.loading = NO;
- [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
-}
-
-
-@end
@@ -1,14 +0,0 @@
-//
-// SCAppDelegate.h
-// SSCatalog
-//
-// Created by Sam Soffes on 9/21/09.
-// Copyright 2009 Sam Soffes, Inc. All rights reserved.
-//
-
-@interface SCAppDelegate : NSObject <UIApplicationDelegate>
-
-@property (nonatomic, retain) UIWindow *window;
-@property (nonatomic, retain) UINavigationController *navigationController;
-
-@end
@@ -1,51 +0,0 @@
-//
-// SCAppDelegate.m
-// SSCatalog
-//
-// Created by Sam Soffes on 9/21/09.
-// Copyright 2009 Sam Soffes, Inc. All rights reserved.
-//
-
-#import "SCAppDelegate.h"
-#import "SCRootViewController.h"
-
-@implementation SCAppDelegate {
- UIWindow *_window;
- UINavigationController *_navigationController;
-}
-
-
-#pragma mark - Accessors
-
-@synthesize window = _window;
-@synthesize navigationController = _navigationController;
-
-
-#pragma mark - NSObject
-
-- (void)dealloc {
- [_navigationController release];
- [_window release];
- [super dealloc];
-}
-
-
-#pragma mark - UIApplicationDelegate
-
-- (void)applicationDidFinishLaunching:(UIApplication *)application {
-
- _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
-
- SCRootViewController *viewController = [[SCRootViewController alloc] initWithStyle:UITableViewStyleGrouped];
- UINavigationController *aNavigationController = [[UINavigationController alloc] initWithRootViewController:viewController];
-
- self.navigationController = aNavigationController;
-
- [viewController release];
- [aNavigationController release];
-
- [_window addSubview:_navigationController.view];
- [_window makeKeyAndVisible];
-}
-
-@end
@@ -1,13 +0,0 @@
-//
-// SCBadgeTableViewCellDemoViewController.m
-// SSCatalog
-//
-// Created by Sam Soffes on 01/29/11.
-// Copyright 2011 Sam Soffes, Inc. All rights reserved.
-//
-
-@interface SCBadgeTableViewCellDemoViewController : UITableViewController
-
-+ (NSString *)title;
-
-@end
@@ -1,116 +0,0 @@
-//
-// SCBadgeTableViewCellDemoViewController.m
-// SSCatalog
-//
-// Created by Sam Soffes on 01/29/11.
-// Copyright 2011 Sam Soffes, Inc. All rights reserved.
-//
-
-#import "SCBadgeTableViewCellDemoViewController.h"
-
-@implementation SCBadgeTableViewCellDemoViewController
-
-#pragma mark - Class Methods
-
-+ (NSString *)title {
- return @"Badge Table View Cell";
-}
-
-
-#pragma mark - NSObject
-
-- (id)init {
- return self = [super initWithStyle:UITableViewStyleGrouped];
-}
-
-
-#pragma mark - UIViewController
-
-- (void)viewDidLoad {
- [super viewDidLoad];
- self.title = [[self class] title];
-}
-
-
-- (void)viewWillAppear:(BOOL)animated {
- [super viewWillAppear:animated];
- [self.tableView reloadData];
-}
-
-
-- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
- if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
- return toInterfaceOrientation != UIInterfaceOrientationPortraitUpsideDown;
- }
- return YES;
-}
-
-
-#pragma mark - UITableViewDataSource
-
-- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
- return 2;
-}
-
-
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- return (section == 0) ? 4 : 12;
-}
-
-
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- static NSString *cellIdentifier = @"cell";
-
- SSBadgeTableViewCell *cell = (SSBadgeTableViewCell *)[tableView dequeueReusableCellWithIdentifier:cellIdentifier];
- if (cell == nil) {
- cell = [[[SSBadgeTableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:cellIdentifier] autorelease];
- }
-
- if (indexPath.section == 0) {
- switch (indexPath.row) {
- case 0: {
- cell.textLabel.text = @"Default Badge View";
- cell.badgeView.textLabel.text = @"0";
- cell.badgeView.badgeColor = [SSBadgeView defaultBadgeColor];
- break;
- }
-
- case 1: {
- cell.textLabel.text = @"Unread Count";
- cell.badgeView.textLabel.text = @"3";
- cell.badgeView.badgeColor = [UIColor colorWithRed:0.969f green:0.082f blue:0.078f alpha:1.0f];
- break;
- }
-
- case 2: {
- cell.textLabel.text = @"Text Badge";
- cell.badgeView.textLabel.text = @"New";
- cell.badgeView.badgeColor = [UIColor colorWithRed:0.388f green:0.686f blue:0.239f alpha:1.0f];
- break;
- }
-
- case 3: {
- cell.textLabel.text = @"Nil value";
- cell.badgeView.textLabel.text = nil;
- cell.badgeView.badgeColor = [SSBadgeView defaultBadgeColor];
- break;
- }
- }
- } else {
- NSNumber *number = [NSNumber numberWithInteger:indexPath.row * 256];
- cell.textLabel.text = [[NSNumberFormatter localizedStringFromNumber:number numberStyle:NSNumberFormatterSpellOutStyle] capitalizedString];
- cell.badgeView.textLabel.text = [NSNumberFormatter localizedStringFromNumber:number numberStyle:NSNumberFormatterDecimalStyle];
- cell.badgeView.badgeColor = [SSBadgeView defaultBadgeColor];
- }
-
- return cell;
-}
-
-
-#pragma mark - UITableViewDelegate
-
-- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- [tableView deselectRowAtIndexPath:indexPath animated:YES];
-}
-
-@end
@@ -1,13 +0,0 @@
-//
-// SCCollectionViewDemoViewController.h
-// SSCatalog
-//
-// Created by Sam Soffes on 8/24/10.
-// Copyright 2010 Sam Soffes. All rights reserved.
-//
-
-@interface SCCollectionViewDemoViewController : SSCollectionViewController
-
-+ (NSString *)title;
-
-@end
Oops, something went wrong.

0 comments on commit 188e52f

Please sign in to comment.