Browse files

Require Apple LLVM compiler 3.0

  • Loading branch information...
1 parent fd20c0e commit 454e654c0493ebdbf95d52345ad86ec147bb3bb3 @soffes soffes committed Oct 9, 2011
Showing with 238 additions and 603 deletions.
  1. +1 −11 SSCatalog/Classes/SCAddressBarDemoViewController.h
  2. +12 −11 SSCatalog/Classes/SCAddressBarDemoViewController.m
  3. +1 −6 SSCatalog/Classes/SCAppDelegate.h
  4. +8 −7 SSCatalog/Classes/SCAppDelegate.m
  5. +1 −3 SSCatalog/Classes/SCBadgeTableViewCellDemoViewController.h
  6. +5 −10 SSCatalog/Classes/SCBadgeTableViewCellDemoViewController.m
  7. +1 −3 SSCatalog/Classes/SCCollectionViewDemoViewController.h
  8. +4 −8 SSCatalog/Classes/SCCollectionViewDemoViewController.m
  9. +1 −7 SSCatalog/Classes/SCGradientViewDemoViewController.h
  10. +9 −9 SSCatalog/Classes/SCGradientViewDemoViewController.m
  11. +1 −6 SSCatalog/Classes/SCHUDViewDemoViewController.h
  12. +8 −9 SSCatalog/Classes/SCHUDViewDemoViewController.m
  13. +1 −6 SSCatalog/Classes/SCImageCollectionViewItem.h
  14. +3 −6 SSCatalog/Classes/SCImageCollectionViewItem.m
  15. +1 −6 SSCatalog/Classes/SCIndicatorLabelDemoViewController.h
  16. +15 −7 SSCatalog/Classes/SCIndicatorLabelDemoViewController.m
  17. +1 −3 SSCatalog/Classes/SCLineViewDemoViewController.h
  18. +2 −4 SSCatalog/Classes/SCLineViewDemoViewController.m
  19. +1 −3 SSCatalog/Classes/SCLoadingViewDemoViewController.h
  20. +2 −4 SSCatalog/Classes/SCLoadingViewDemoViewController.m
  21. +1 −6 SSCatalog/Classes/SCPickerDemoViewController.h
  22. +6 −12 SSCatalog/Classes/SCPickerDemoViewController.m
  23. +1 −6 SSCatalog/Classes/SCPickerDetailViewController.h
  24. +3 −6 SSCatalog/Classes/SCPickerDetailViewController.m
  25. +1 −7 SSCatalog/Classes/SCPieProgressViewDemoViewController.h
  26. +9 −9 SSCatalog/Classes/SCPieProgressViewDemoViewController.m
  27. +1 −4 SSCatalog/Classes/SCRootViewController.h
  28. +8 −9 SSCatalog/Classes/SCRootViewController.m
  29. +1 −9 SSCatalog/Classes/SCSegmentedControlDemoViewController.h
  30. +9 −10 SSCatalog/Classes/SCSegmentedControlDemoViewController.m
  31. +1 −3 SSCatalog/Classes/SCSwitchDemoViewController.h
  32. +2 −5 SSCatalog/Classes/SCSwitchDemoViewController.m
  33. +1 −5 SSCatalog/Classes/SSRatingDemoViewController.h
  34. +2 −4 SSCatalog/Classes/SSRatingDemoViewController.m
  35. +1 −12 SSToolkit/SSAddressBarTextField.h
  36. +6 −5 SSToolkit/SSAddressBarTextField.m
  37. +1 −9 SSToolkit/SSAddressBarTextFieldBackgroundView.h
  38. +5 −2 SSToolkit/SSAddressBarTextFieldBackgroundView.m
  39. +0 −1 SSToolkit/SSAddressBarTextFieldBackgroundViewInnerView.h
  40. +1 −6 SSToolkit/SSBadgeTableViewCell.h
  41. +1 −13 SSToolkit/SSBadgeView.h
  42. +1 −9 SSToolkit/SSBorderedView.h
  43. +1 −17 SSToolkit/SSCollectionView.h
  44. +12 −9 SSToolkit/SSCollectionView.m
  45. +1 −6 SSToolkit/SSCollectionViewController.h
  46. +1 −6 SSToolkit/SSCollectionViewExtremityTableViewCell.h
  47. +1 −19 SSToolkit/SSCollectionViewItem.h
  48. +6 −1 SSToolkit/SSCollectionViewItem.m
  49. +1 −9 SSToolkit/SSCollectionViewItemTableViewCell.h
  50. +1 −7 SSToolkit/SSConcurrentOperation.h
  51. +5 −1 SSToolkit/SSConcurrentOperation.m
  52. +1 −10 SSToolkit/SSGradientView.h
  53. +4 −1 SSToolkit/SSGradientView.m
  54. +1 −17 SSToolkit/SSHUDView.h
  55. +4 −1 SSToolkit/SSHUDView.m
  56. +1 −6 SSToolkit/SSHUDWindow.h
  57. +1 −8 SSToolkit/SSIndicatorLabel.h
  58. +1 −7 SSToolkit/SSLabel.h
  59. +1 −9 SSToolkit/SSLineView.h
  60. +1 −11 SSToolkit/SSLoadingView.h
  61. +1 −9 SSToolkit/SSNavigationController.h
  62. +1 −8 SSToolkit/SSPickerViewController.h
  63. +1 −10 SSToolkit/SSPieProgressView.h
  64. +1 −12 SSToolkit/SSRatingPicker.h
  65. +7 −15 SSToolkit/SSRatingPicker.m
  66. +1 −11 SSToolkit/SSRatingPickerScrollView.h
  67. +6 −1 SSToolkit/SSRatingPickerScrollView.m
  68. +1 −21 SSToolkit/SSSegmentedControl.h
  69. +6 −1 SSToolkit/SSSegmentedControl.m
  70. +1 −29 SSToolkit/SSSwitch.h
  71. +7 −1 SSToolkit/SSSwitch.m
  72. +1 −7 SSToolkit/SSTableViewController.h
  73. +1 −8 SSToolkit/SSTextField.h
  74. +1 −9 SSToolkit/SSTextView.h
  75. +4 −1 SSToolkit/SSTextView.m
  76. +2 −15 SSToolkit/SSViewController.h
  77. +5 −1 SSToolkit/SSViewController.m
  78. +1 −17 SSToolkit/SSWebView.h
  79. +6 −1 SSToolkit/SSWebView.m
View
12 SSCatalog/Classes/SCAddressBarDemoViewController.h
@@ -6,17 +6,7 @@
// Copyright 2011 Sam Soffes. All rights reserved.
//
-#import <SSToolkit/SSToolkit.h>
-
-@interface SCAddressBarDemoViewController : UIViewController <UITextFieldDelegate, SSWebViewDelegate> {
-
-@private
-
- SSGradientView *_headerView;
- UILabel *_titleLabel;
- SSAddressBarTextField *_addressBar;
- SSWebView *_webView;
-}
+@interface SCAddressBarDemoViewController : UIViewController <UITextFieldDelegate, SSWebViewDelegate>
+ (NSString *)title;
View
23 SSCatalog/Classes/SCAddressBarDemoViewController.m
@@ -8,18 +8,22 @@
#import "SCAddressBarDemoViewController.h"
-@implementation SCAddressBarDemoViewController
+@implementation SCAddressBarDemoViewController {
+ SSGradientView *_headerView;
+ UILabel *_titleLabel;
+ SSAddressBarTextField *_addressBar;
+ SSWebView *_webView;
+}
+
-#pragma mark -
-#pragma mark Class Methods
+#pragma mark - Class Methods
+ (NSString *)title {
return @"Address bar";
}
-#pragma mark -
-#pragma mark NSObject
+#pragma mark - NSObject
- (void)dealloc {
_webView.delegate = nil;
@@ -31,8 +35,7 @@ - (void)dealloc {
}
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
@@ -85,8 +88,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa
}
-#pragma mark -
-#pragma mark UITextFieldDelegate
+#pragma mark - UITextFieldDelegate
- (void)textFieldDidBeginEditing:(UITextField *)textField {
[[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(_removeGrayView) object:nil];
@@ -116,8 +118,7 @@ - (BOOL)textFieldShouldReturn:(UITextField *)textField {
}
-#pragma mark -
-#pragma mark SSWebViewDelegate
+#pragma mark - SSWebViewDelegate
- (void)webViewDidStartLoadingPage:(SSWebView *)aWebView {
_addressBar.loading = YES;
View
7 SSCatalog/Classes/SCAppDelegate.h
@@ -6,14 +6,9 @@
// Copyright 2009 Sam Soffes, Inc. All rights reserved.
//
-@interface SCAppDelegate : NSObject <UIApplicationDelegate> {
-
- UIWindow *_window;
- UINavigationController *_navigationController;
-}
+@interface SCAppDelegate : NSObject <UIApplicationDelegate>
@property (nonatomic, retain) UIWindow *window;
@property (nonatomic, retain) UINavigationController *navigationController;
@end
-
View
15 SSCatalog/Classes/SCAppDelegate.m
@@ -9,17 +9,19 @@
#import "SCAppDelegate.h"
#import "SCRootViewController.h"
-@implementation SCAppDelegate
+@implementation SCAppDelegate {
+ UIWindow *_window;
+ UINavigationController *_navigationController;
+}
+
-#pragma mark -
-#pragma mark Accessors
+#pragma mark - Accessors
@synthesize window = _window;
@synthesize navigationController = _navigationController;
-#pragma mark -
-#pragma mark NSObject
+#pragma mark - NSObject
- (void)dealloc {
[_navigationController release];
@@ -28,8 +30,7 @@ - (void)dealloc {
}
-#pragma mark -
-#pragma mark UIApplicationDelegate
+#pragma mark - UIApplicationDelegate
- (void)applicationDidFinishLaunching:(UIApplication *)application {
View
4 SSCatalog/Classes/SCBadgeTableViewCellDemoViewController.h
@@ -6,9 +6,7 @@
// Copyright 2011 Sam Soffes, Inc. All rights reserved.
//
-@interface SCBadgeTableViewCellDemoViewController : UITableViewController {
-
-}
+@interface SCBadgeTableViewCellDemoViewController : UITableViewController
+ (NSString *)title;
View
15 SSCatalog/Classes/SCBadgeTableViewCellDemoViewController.m
@@ -10,24 +10,21 @@
@implementation SCBadgeTableViewCellDemoViewController
-#pragma mark -
-#pragma mark Class Methods
+#pragma mark - Class Methods
+ (NSString *)title {
return @"Badge Table View Cell";
}
-#pragma mark -
-#pragma mark NSObject
+#pragma mark - NSObject
- (id)init {
return self = [super initWithStyle:UITableViewStyleGrouped];
}
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
@@ -49,8 +46,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa
}
-#pragma mark -
-#pragma mark UITableViewDataSource
+#pragma mark - UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 2;
@@ -111,8 +107,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
}
-#pragma mark -
-#pragma mark UITableViewDelegate
+#pragma mark - UITableViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
View
4 SSCatalog/Classes/SCCollectionViewDemoViewController.h
@@ -6,9 +6,7 @@
// Copyright 2010 Sam Soffes. All rights reserved.
//
-@interface SCCollectionViewDemoViewController : SSCollectionViewController {
-
-}
+@interface SCCollectionViewDemoViewController : SSCollectionViewController
+ (NSString *)title;
View
12 SSCatalog/Classes/SCCollectionViewDemoViewController.m
@@ -11,16 +11,14 @@
@implementation SCCollectionViewDemoViewController
-#pragma mark -
-#pragma mark Class Methods
+#pragma mark - Class Methods
+ (NSString *)title {
return @"Collection View";
}
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
@@ -38,8 +36,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa
}
-#pragma mark -
-#pragma mark SSCollectionViewDataSource
+#pragma mark - SSCollectionViewDataSource
- (NSUInteger)numberOfSectionsInCollectionView:(SSCollectionView *)aCollectionView {
return 10;
@@ -79,8 +76,7 @@ - (UIView *)collectionView:(SSCollectionView *)aCollectionView viewForHeaderInSe
}
-#pragma mark -
-#pragma mark SSCollectionViewDelegate
+#pragma mark - SSCollectionViewDelegate
- (CGSize)collectionView:(SSCollectionView *)aCollectionView itemSizeForSection:(NSUInteger)section {
return CGSizeMake(80.0f, 80.0f);
View
8 SSCatalog/Classes/SCGradientViewDemoViewController.h
@@ -6,13 +6,7 @@
// Copyright 2009 Sam Soffes, Inc. All rights reserved.
//
-@interface SCGradientViewDemoViewController : UIViewController {
-
-@private
-
- BOOL _blue;
- SSGradientView *_gradientView;
-}
+@interface SCGradientViewDemoViewController : UIViewController
+ (NSString *)title;
View
18 SSCatalog/Classes/SCGradientViewDemoViewController.m
@@ -8,27 +8,28 @@
#import "SCGradientViewDemoViewController.h"
-@implementation SCGradientViewDemoViewController
+@implementation SCGradientViewDemoViewController {
+ BOOL _blue;
+ SSGradientView *_gradientView;
+}
+
-#pragma mark -
-#pragma mark Class Methods
+#pragma mark - Class Methods
+ (NSString *)title {
return @"Gradient View";
}
-#pragma mark -
-#pragma mark NSObject
+#pragma mark - NSObject
- (void)dealloc {
[_gradientView release];
[super dealloc];
}
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
@@ -75,8 +76,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa
}
-#pragma mark -
-#pragma mark Actions
+#pragma mark - Actions
- (void)changeColor:(id)sender {
if (_blue) {
View
7 SSCatalog/Classes/SCHUDViewDemoViewController.h
@@ -6,12 +6,7 @@
// Copyright 2009 Sam Soffes, Inc. All rights reserved.
//
-@interface SCHUDViewDemoViewController : UIViewController {
-
-@private
-
- SSHUDView *_hud;
-}
+@interface SCHUDViewDemoViewController : UIViewController
+ (NSString *)title;
View
17 SSCatalog/Classes/SCHUDViewDemoViewController.m
@@ -8,27 +8,27 @@
#import "SCHUDViewDemoViewController.h"
-@implementation SCHUDViewDemoViewController
+@implementation SCHUDViewDemoViewController {
+ SSHUDView *_hud;
+}
+
-#pragma mark -
-#pragma mark Class Methods
+#pragma mark - Class Methods
+ (NSString *)title {
return @"HUD View";
}
-#pragma mark -
-#pragma mark NSObject
+#pragma mark - NSObject
- (void)dealloc {
[_hud release];
[super dealloc];
}
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
@@ -55,8 +55,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa
}
-#pragma mark -
-#pragma mark Actions
+#pragma mark - Actions
- (void)complete:(id)sender {
[_hud completeWithTitle:@"Finished"];
View
7 SSCatalog/Classes/SCImageCollectionViewItem.h
@@ -6,12 +6,7 @@
// Copyright 2011 Sam Soffes. All rights reserved.
//
-@interface SCImageCollectionViewItem : SSCollectionViewItem {
-
-@private
-
- NSURL *_imageURL;
-}
+@interface SCImageCollectionViewItem : SSCollectionViewItem
@property (nonatomic, retain) NSURL *imageURL;
View
9 SSCatalog/Classes/SCImageCollectionViewItem.m
@@ -11,8 +11,7 @@
@implementation SCImageCollectionViewItem
-#pragma mark -
-#pragma mark Accessors
+#pragma mark - Accessors
@synthesize imageURL = _imageURL;
@@ -24,17 +23,15 @@ - (void)setImageURL:(NSURL *)url {
}
-#pragma mark -
-#pragma mark NSObject
+#pragma mark - NSObject
- (void)dealloc {
[_imageURL release];
[super dealloc];
}
-#pragma mark -
-#pragma mark Initializer
+#pragma mark - Initializer
- (id)initWithReuseIdentifier:(NSString *)aReuseIdentifier {
if ((self = [super initWithStyle:SSCollectionViewItemStyleImage reuseIdentifier:aReuseIdentifier])) {
View
7 SSCatalog/Classes/SCIndicatorLabelDemoViewController.h
@@ -6,12 +6,7 @@
// Copyright 2010 Sam Soffes. All rights reserved.
//
-@interface SCIndicatorLabelDemoViewController : UIViewController {
-
-@private
-
- SSIndicatorLabel *_indicatorLabel;
-}
+@interface SCIndicatorLabelDemoViewController : UIViewController
+ (NSString *)title;
View
22 SSCatalog/Classes/SCIndicatorLabelDemoViewController.m
@@ -8,18 +8,27 @@
#import "SCIndicatorLabelDemoViewController.h"
-@implementation SCIndicatorLabelDemoViewController
+@implementation SCIndicatorLabelDemoViewController {
+ SSIndicatorLabel *_indicatorLabel;
+}
+
-#pragma mark -
-#pragma mark Class Methods
+#pragma mark - Class Methods
+ (NSString *)title {
return @"Indicator Label";
}
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - NSObject
+
+- (void)dealloc {
+ [_indicatorLabel release];
+ [super dealloc];
+}
+
+
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
@@ -64,8 +73,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa
}
-#pragma mark -
-#pragma mark Actions
+#pragma mark - Actions
- (void)start:(id)sender {
[_indicatorLabel startWithText:@"Loading something..."];
View
4 SSCatalog/Classes/SCLineViewDemoViewController.h
@@ -6,9 +6,7 @@
// Copyright 2010 Sam Soffes, Inc. All rights reserved.
//
-@interface SCLineViewDemoViewController : UIViewController {
-
-}
+@interface SCLineViewDemoViewController : UIViewController
+ (NSString *)title;
View
6 SSCatalog/Classes/SCLineViewDemoViewController.m
@@ -10,16 +10,14 @@
@implementation SCLineViewDemoViewController
-#pragma mark -
-#pragma mark Class Methods
+#pragma mark - Class Methods
+ (NSString *)title {
return @"Line View";
}
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
View
4 SSCatalog/Classes/SCLoadingViewDemoViewController.h
@@ -6,9 +6,7 @@
// Copyright 2010 Sam Soffes. All rights reserved.
//
-@interface SCLoadingViewDemoViewController : UIViewController {
-
-}
+@interface SCLoadingViewDemoViewController : UIViewController
+ (NSString *)title;
View
6 SSCatalog/Classes/SCLoadingViewDemoViewController.m
@@ -10,16 +10,14 @@
@implementation SCLoadingViewDemoViewController
-#pragma mark -
-#pragma mark Class Methods
+#pragma mark - Class Methods
+ (NSString *)title {
return @"Loading View";
}
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
View
7 SSCatalog/Classes/SCPickerDemoViewController.h
@@ -6,12 +6,7 @@
// Copyright 2009 Sam Soffes, Inc. All rights reserved.
//
-@interface SCPickerDemoViewController : UITableViewController {
-
-@private
-
- NSString *_selectedAbbreviation;
-}
+@interface SCPickerDemoViewController : UITableViewController
@property (nonatomic, retain) NSString *selectedAbbreviation;
View
18 SSCatalog/Classes/SCPickerDemoViewController.m
@@ -11,22 +11,19 @@
@implementation SCPickerDemoViewController
-#pragma mark -
-#pragma mark Accessors
+#pragma mark - Accessors
@synthesize selectedAbbreviation = _selectedAbbreviation;
-#pragma mark -
-#pragma mark Class Methods
+#pragma mark - Class Methods
+ (NSString *)title {
return @"Settings Picker";
}
-#pragma mark -
-#pragma mark NSObject
+#pragma mark - NSObject
- (id)init {
return self = [super initWithStyle:UITableViewStyleGrouped];
@@ -39,8 +36,7 @@ - (void)dealloc {
}
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
@@ -63,8 +59,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa
}
-#pragma mark -
-#pragma mark UITableViewDataSource
+#pragma mark - UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
@@ -92,8 +87,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
}
-#pragma mark -
-#pragma mark UITableViewDelegate
+#pragma mark - UITableViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
SCPickerDetailViewController *viewController = [[SCPickerDetailViewController alloc] initWithStyle:UITableViewStyleGrouped];
View
7 SSCatalog/Classes/SCPickerDetailViewController.h
@@ -6,10 +6,5 @@
// Copyright 2009 Sam Soffes, Inc. All rights reserved.
//
-#import <SSToolkit/SSToolkit.h>
-
-@interface SCPickerDetailViewController : SSPickerViewController {
-
-}
-
+@interface SCPickerDetailViewController : SSPickerViewController
@end
View
9 SSCatalog/Classes/SCPickerDetailViewController.m
@@ -11,17 +11,15 @@
@implementation SCPickerDetailViewController
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.title = @"Choose";
}
-#pragma mark -
-#pragma mark SSPickerViewController
+#pragma mark - SSPickerViewController
- (void)loadKeys {
self.keys = [[NSTimeZone abbreviationDictionary] allKeys];
@@ -41,8 +39,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa
}
-#pragma mark -
-#pragma mark UITableViewDelegate
+#pragma mark - UITableViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[super tableView:tableView didSelectRowAtIndexPath:indexPath];
View
8 SSCatalog/Classes/SCPieProgressViewDemoViewController.h
@@ -6,13 +6,7 @@
// Copyright 2010 Sam Soffes, Inc. All rights reserved.
//
-@interface SCPieProgressViewDemoViewController : UIViewController {
-
-@private
-
- SSPieProgressView *_progressView7;
- NSTimer *_timer;
-}
+@interface SCPieProgressViewDemoViewController : UIViewController
+ (NSString *)title;
View
18 SSCatalog/Classes/SCPieProgressViewDemoViewController.m
@@ -8,18 +8,20 @@
#import "SCPieProgressViewDemoViewController.h"
-@implementation SCPieProgressViewDemoViewController
+@implementation SCPieProgressViewDemoViewController {
+ SSPieProgressView *_progressView7;
+ NSTimer *_timer;
+}
+
-#pragma mark -
-#pragma mark Class Methods
+#pragma mark - Class Methods
+ (NSString *)title {
return @"Pie Progress View";
}
-#pragma mark -
-#pragma mark NSObject
+#pragma mark - NSObject
- (void)dealloc {
[_progressView7 release];
@@ -29,8 +31,7 @@ - (void)dealloc {
}
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
@@ -89,8 +90,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa
}
-#pragma mark -
-#pragma mark Timer
+#pragma mark - Timer
- (void)incrementProgress:(NSTimer *)timer {
_progressView7.progress = _progressView7.progress + 0.01;
View
5 SSCatalog/Classes/SCRootViewController.h
@@ -6,9 +6,6 @@
// Copyright 2009 Sam Soffes, Inc. All rights reserved.
//
-@interface SCRootViewController : UITableViewController {
-
- NSArray *_viewControllers;
-}
+@interface SCRootViewController : UITableViewController
@end
View
17 SSCatalog/Classes/SCRootViewController.m
@@ -17,19 +17,20 @@ @interface UIViewController (SCRootViewControllerAdditions)
+ (id)setup;
@end
-@implementation SCRootViewController
+@implementation SCRootViewController {
+ NSArray *_viewControllers;
+}
+
-#pragma mark -
-#pragma mark NSObject
+#pragma mark - NSObject
- (void)dealloc {
[_viewControllers release];
[super dealloc];
}
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
@@ -77,8 +78,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa
}
-#pragma mark -
-#pragma mark UITableViewDataSource
+#pragma mark - UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return [_viewControllers count];
@@ -112,8 +112,7 @@ - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInte
}
-#pragma mark -
-#pragma mark UITableViewDelegate
+#pragma mark - UITableViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[self.tableView deselectRowAtIndexPath:indexPath animated:YES];
View
10 SSCatalog/Classes/SCSegmentedControlDemoViewController.h
@@ -6,15 +6,7 @@
// Copyright 2011 Sam Soffes. All rights reserved.
//
-@class SSSegmentedControl;
-
-@interface SCSegmentedControlDemoViewController : UIViewController {
-
-@private
-
- UISegmentedControl *_systemSegmentedControl;
- SSSegmentedControl *_customSegmentedControl;
-}
+@interface SCSegmentedControlDemoViewController : UIViewController
+ (NSString *)title;
View
19 SSCatalog/Classes/SCSegmentedControlDemoViewController.m
@@ -7,20 +7,21 @@
//
#import "SCSegmentedControlDemoViewController.h"
-#import <SSToolkit/SSSegmentedControl.h>
-@implementation SCSegmentedControlDemoViewController
+@implementation SCSegmentedControlDemoViewController {
+ UISegmentedControl *_systemSegmentedControl;
+ SSSegmentedControl *_customSegmentedControl;
+}
+
-#pragma mark -
-#pragma mark Class Methods
+#pragma mark - Class Methods
+ (NSString *)title {
return @"Segmented Control";
}
-#pragma mark -
-#pragma mark NSObject
+#pragma mark - NSObject
- (void)dealloc {
[_systemSegmentedControl release];
@@ -29,8 +30,7 @@ - (void)dealloc {
}
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
@@ -85,8 +85,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa
}
-#pragma mark -
-#pragma mark Actions
+#pragma mark - Actions
- (void)valueChanged:(id)sender {
NSLog(@"Value changed to %i", [sender selectedSegmentIndex]);
View
4 SSCatalog/Classes/SCSwitchDemoViewController.h
@@ -6,9 +6,7 @@
// Copyright 2010 Sam Soffes. All rights reserved.
//
-@interface SCSwitchDemoViewController : UIViewController {
-
-}
+@interface SCSwitchDemoViewController : UIViewController
+ (NSString *)title;
View
7 SSCatalog/Classes/SCSwitchDemoViewController.m
@@ -7,20 +7,17 @@
//
#import "SCSwitchDemoViewController.h"
-#import <SSToolkit/SSSwitch.h>
@implementation SCSwitchDemoViewController
-#pragma mark -
-#pragma mark Class Methods
+#pragma mark - Class Methods
+ (NSString *)title {
return @"Switch";
}
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
View
6 SSCatalog/Classes/SSRatingDemoViewController.h
@@ -6,11 +6,7 @@
// Copyright 2011 Sam Soffes. All rights reserved.
//
-#import <SSToolkit/SSRatingPickerViewController.h>
-
-@interface SSRatingDemoViewController : SSRatingPickerViewController {
-
-}
+@interface SSRatingDemoViewController : SSRatingPickerViewController
+ (NSString *)title;
View
6 SSCatalog/Classes/SSRatingDemoViewController.m
@@ -10,16 +10,14 @@
@implementation SSRatingDemoViewController
-#pragma mark -
-#pragma mark Class Methods
+#pragma mark - Class Methods
+ (NSString *)title {
return @"Rating Picker";
}
-#pragma mark -
-#pragma mark UIViewController
+#pragma mark - UIViewController
- (void)viewDidLoad {
[super viewDidLoad];
View
13 SSToolkit/SSAddressBarTextField.h
@@ -8,18 +8,7 @@
#import "SSTextField.h"
-@class SSAddressBarTextFieldBackgroundView;
-
-@interface SSAddressBarTextField : SSTextField {
-
-@private
-
- BOOL _loading;
- UIButton *_reloadButton;
- UIButton *_stopButton;
-
- SSAddressBarTextFieldBackgroundView *_textFieldBackgroundView;
-}
+@interface SSAddressBarTextField : SSTextField
@property (nonatomic, assign, getter=isLoading) BOOL loading;
@property (nonatomic, retain) UIButton *reloadButton;
View
11 SSToolkit/SSAddressBarTextField.m
@@ -11,11 +11,16 @@
#import "SSDrawingUtilities.h"
#import "UIImage+SSToolkitAdditions.h"
-@implementation SSAddressBarTextField
+@implementation SSAddressBarTextField {
+ SSAddressBarTextFieldBackgroundView *_textFieldBackgroundView;
+}
+
#pragma mark - Accessors
@synthesize loading = _loading;
+@synthesize reloadButton = _reloadButton;
+@synthesize stopButton = _stopButton;
- (void)setLoading:(BOOL)isLoading {
if (_loading == isLoading) {
@@ -28,10 +33,6 @@ - (void)setLoading:(BOOL)isLoading {
}
-@synthesize reloadButton = _reloadButton;
-@synthesize stopButton = _stopButton;
-
-
#pragma mark - NSObject
- (void)dealloc {
View
10 SSToolkit/SSAddressBarTextFieldBackgroundView.h
@@ -6,15 +6,7 @@
// Copyright 2011 Sam Soffes. All rights reserved.
//
-@class SSAddressBarTextFieldBackgroundViewInnerView;
-
-@interface SSAddressBarTextFieldBackgroundView : UIView {
-
-@private
-
- BOOL _loading;
- SSAddressBarTextFieldBackgroundViewInnerView *_innerView;
-}
+@interface SSAddressBarTextFieldBackgroundView : UIView
@property (nonatomic, assign, getter=isLoading) BOOL loading;
View
7 SSToolkit/SSAddressBarTextFieldBackgroundView.m
@@ -19,9 +19,12 @@ - (void)_setupAnimation;
@end
-@implementation SSAddressBarTextFieldBackgroundView
+@implementation SSAddressBarTextFieldBackgroundView {
+ SSAddressBarTextFieldBackgroundViewInnerView *_innerView;
+}
+
-@synthesize loading;
+@synthesize loading = _loading;
- (void)setLoading:(BOOL)isLoading {
if (_loading == isLoading) {
View
1 SSToolkit/SSAddressBarTextFieldBackgroundViewInnerView.h
@@ -7,5 +7,4 @@
//
@interface SSAddressBarTextFieldBackgroundViewInnerView : UIView
-
@end
View
7 SSToolkit/SSBadgeTableViewCell.h
@@ -11,12 +11,7 @@
/**
Table view cell that displays a `SSBadgeView` as its accessory.
*/
-@interface SSBadgeTableViewCell : UITableViewCell {
-
-@private
-
- SSBadgeView *_badgeView;
-}
+@interface SSBadgeTableViewCell : UITableViewCell
/**
A view that indicates some status to the user. (read-only)
View
14 SSToolkit/SSBadgeView.h
@@ -32,19 +32,7 @@ typedef enum {
more flexible resizing.
*/
-@interface SSBadgeView : UIView {
-
-@private
-
- SSLabel *_textLabel;
- UIColor *_badgeColor;
- UIColor *_highlightedBadgeColor;
- UIImage *_badgeImage;
- UIImage *_highlightedBadgeImage;
- CGFloat _cornerRadius;
- SSBadgeViewAlignment _badgeAlignment;
- BOOL _highlighted;
-}
+@interface SSBadgeView : UIView
///--------------------------------
/// @name Accessing the Badge Label
View
10 SSToolkit/SSBorderedView.h
@@ -9,15 +9,7 @@
/**
Simple UIView for drawing top and bottom borders with optional insets in a view.
*/
-@interface SSBorderedView : UIView {
-
-@private
-
- UIColor *_topBorderColor;
- UIColor *_topInsetColor;
- UIColor *_bottomInsetColor;
- UIColor *_bottomBorderColor;
-}
+@interface SSBorderedView : UIView
///-----------------------------
/// @name Drawing the Top Border
View
18 SSToolkit/SSCollectionView.h
@@ -55,23 +55,7 @@ typedef enum {
instead of row. This is done to make working with other classes that use NSIndexPath (like NSFetchedResultsController)
easier.
*/
-@interface SSCollectionView : UIView <UITableViewDataSource, UITableViewDelegate> {
-
-@private
-
- id<SSCollectionViewDelegate> _delegate;
- id<SSCollectionViewDataSource> _dataSource;
-
- SSCollectionViewExtremitiesStyle _extremitiesStyle;
- CGFloat _minimumColumnSpacing;
- CGFloat _rowSpacing;
- BOOL _allowsSelection;
- NSMutableSet *_visibleItems;
- NSMutableDictionary *_reuseableItems;
- NSMutableDictionary *_sectionCache;
-
- UITableView *_tableView;
-}
+@interface SSCollectionView : UIView <UITableViewDataSource, UITableViewDelegate>
/**
The object that acts as the data source of the receiving collection view.
View
21 SSToolkit/SSCollectionView.m
@@ -48,11 +48,22 @@ - (id)_sectionInfoItemForKey:(NSString *)key section:(NSUInteger)section;
- (void)_setSectionInfoItem:(id)object forKey:(NSString *)key section:(NSUInteger)section;
@end
-@implementation SSCollectionView
+@implementation SSCollectionView {
+ NSMutableSet *_visibleItems;
+ NSMutableDictionary *_reuseableItems;
+ NSMutableDictionary *_sectionCache;
+
+ UITableView *_tableView;
+}
#pragma mark - Accessors
@synthesize dataSource = _dataSource;
+@synthesize delegate = _delegate;
+@synthesize minimumColumnSpacing = _minimumColumnSpacing;
+@synthesize rowSpacing = _rowSpacing;
+@synthesize allowsSelection = _allowsSelection;
+@synthesize extremitiesStyle = _extremitiesStyle;
- (void)setDataSource:(id<SSCollectionViewDataSource>)dataSource {
_dataSource = dataSource;
@@ -63,8 +74,6 @@ - (void)setDataSource:(id<SSCollectionViewDataSource>)dataSource {
}
-@synthesize delegate = _delegate;
-
- (void)setDelegate:(id<SSCollectionViewDelegate>)delegate {
_delegate = delegate;
@@ -74,10 +83,6 @@ - (void)setDelegate:(id<SSCollectionViewDelegate>)delegate {
}
-@synthesize minimumColumnSpacing = _minimumColumnSpacing;
-@synthesize rowSpacing = _rowSpacing;
-@synthesize allowsSelection = _allowsSelection;
-
- (UIScrollView *)scrollView {
return _tableView;
}
@@ -119,8 +124,6 @@ - (void)setBackgroundColor:(UIColor *)color {
}
-@synthesize extremitiesStyle = _extremitiesStyle;
-
- (void)setExtremitiesStyle:(SSCollectionViewExtremitiesStyle)style {
if (_extremitiesStyle == style) {
return;
View
7 SSToolkit/SSCollectionViewController.h
@@ -12,12 +12,7 @@
/**
Creates a controller object that manages a collection view.
*/
-@interface SSCollectionViewController : SSViewController <SSCollectionViewDataSource, SSCollectionViewDelegate> {
-
-@private
-
- SSCollectionView *_collectionView;
-}
+@interface SSCollectionViewController : SSViewController <SSCollectionViewDataSource, SSCollectionViewDelegate>
/**
Returns the table view managed by the controller object. (read-only)
View
7 SSToolkit/SSCollectionViewExtremityTableViewCell.h
@@ -6,12 +6,7 @@
// Copyright 2011 Sam Soffes. All rights reserved.
//
-@interface SSCollectionViewExtremityTableViewCell : UITableViewCell {
-
-@private
-
- UIView *_extrimityView;
-}
+@interface SSCollectionViewExtremityTableViewCell : UITableViewCell
@property (nonatomic, retain) UIView *extrimityView;
View
20 SSToolkit/SSCollectionViewItem.h
@@ -22,25 +22,7 @@ typedef enum {
/**
View for display in a collection view.
*/
-@interface SSCollectionViewItem : UIView {
-
-@private
-
- SSCollectionViewItemStyle _style;
-
- NSString *_reuseIdentifier;
- UIImageView *_imageView;
- SSLabel *_textLabel;
- SSLabel *_detailTextLabel;
- UIView *_backgroundView;
- UIView *_selectedBackgroundView;
-
- BOOL _selected;
- BOOL _highlighted;
-
- SSCollectionView *_collectionView;
- NSIndexPath *_indexPath;
-}
+@interface SSCollectionViewItem : UIView
/**
Returns the image view of the collection view item. (read-only)
View
7 SSToolkit/SSCollectionViewItem.m
@@ -13,7 +13,12 @@
#import "SSLabel.h"
#import "SSDrawingUtilities.h"
-@implementation SSCollectionViewItem
+@implementation SSCollectionViewItem {
+ SSCollectionViewItemStyle _style;
+ SSCollectionView *_collectionView;
+ NSIndexPath *_indexPath;
+}
+
#pragma mark - Accessors
View
10 SSToolkit/SSCollectionViewItemTableViewCell.h
@@ -8,15 +8,7 @@
@class SSCollectionView;
-@interface SSCollectionViewItemTableViewCell : UITableViewCell {
-
-@private
-
- CGSize _itemSize;
- CGFloat _itemSpacing;
- NSArray *_items;
- SSCollectionView *_collectionView;
-}
+@interface SSCollectionViewItemTableViewCell : UITableViewCell
@property (nonatomic, assign) CGSize itemSize;
@property (nonatomic, assign) CGFloat itemSpacing;
View
8 SSToolkit/SSConcurrentOperation.h
@@ -25,13 +25,7 @@
This allows for convenient handling of asynchronous calls in an operation.
*/
-@interface SSConcurrentOperation : NSOperation {
-
-@private
-
- BOOL _isExecuting;
- BOOL _isFinished;
-}
+@interface SSConcurrentOperation : NSOperation
/**
Finishes the receiver's task.
View
6 SSToolkit/SSConcurrentOperation.m
@@ -8,7 +8,11 @@
#import "SSConcurrentOperation.h"
-@implementation SSConcurrentOperation
+@implementation SSConcurrentOperation {
+ BOOL _isExecuting;
+ BOOL _isFinished;
+}
+
#pragma mark - NSObject
View
11 SSToolkit/SSGradientView.h
@@ -22,16 +22,7 @@ typedef enum {
/**
Simple `UIView` wrapper for `CGGradient`.
*/
-@interface SSGradientView : SSBorderedView {
-
-@private
-
- NSArray *_colors;
- NSArray *_locations;
- SSGradientViewDirection _direction;
-
- CGGradientRef _gradient;
-}
+@interface SSGradientView : SSBorderedView
///---------------------------
/// @name Drawing the Gradient
View
5 SSToolkit/SSGradientView.m
@@ -14,7 +14,10 @@ - (void)_refreshGradient;
@end
-@implementation SSGradientView
+@implementation SSGradientView {
+ CGGradientRef _gradient;
+}
+
#pragma mark - Accessors
View
18 SSToolkit/SSHUDView.h
@@ -6,23 +6,7 @@
// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
-@class SSHUDWindow;
-
-@interface SSHUDView : UIView {
-
-@private
-
- SSHUDWindow *_hudWindow;
- UILabel *_textLabel;
- UIActivityIndicatorView *_activityIndicator;
- UIImage *_completeImage;
- UIImage *_failImage;
-
- CGSize _hudSize;
- BOOL _textLabelHidden;
- BOOL _loading;
- BOOL _successful;
-}
+@interface SSHUDView : UIView
@property (nonatomic, retain, readonly) UILabel *textLabel;
@property (nonatomic, assign) BOOL textLabelHidden;
View
5 SSToolkit/SSHUDView.m
@@ -20,7 +20,10 @@ - (void)_deviceOrientationChanged:(NSNotification *)notification;
- (void)_removeWindow;
@end
-@implementation SSHUDView
+@implementation SSHUDView {
+ SSHUDWindow *_hudWindow;
+}
+
#pragma mark - Accessors
View
7 SSToolkit/SSHUDWindow.h
@@ -6,12 +6,7 @@
// Copyright 2011 Sam Soffes. All rights reserved.
//
-@interface SSHUDWindow : UIWindow {
-
-@private
-
- BOOL _hidesVignette;
-}
+@interface SSHUDWindow : UIWindow
@property (nonatomic, assign) BOOL hidesVignette;
View
9 SSToolkit/SSIndicatorLabel.h
@@ -12,14 +12,7 @@
The indicator will slide in from the left when loading and then back out when it is complete. This is great for a view
that shows some sort of status that can refresh.
*/
-@interface SSIndicatorLabel : UIView {
-
-@private
-
- UILabel *_textLabel;
- UIActivityIndicatorView *_activityIndicatorView;
- BOOL _loading;
-}
+@interface SSIndicatorLabel : UIView
/**
Returns the label used for the main textual content of the view. (read-only)
View
8 SSToolkit/SSLabel.h
@@ -23,13 +23,7 @@ typedef enum {
/**
Simple label subclass that adds the ability to align your text to the top or bottom.
*/
-@interface SSLabel : UILabel {
-
-@private
-
- SSLabelVerticalTextAlignment _verticalTextAlignment;
- UIEdgeInsets _textEdgeInsets;
-}
+@interface SSLabel : UILabel
/**
The vertical text alignment of the receiver.
View
10 SSToolkit/SSLineView.h
@@ -13,15 +13,7 @@
The inset is drawn under the line if `insetColor` is not `nil`.
*/
-@interface SSLineView : UIView {
-
-@private
-
- UIColor *_lineColor;
- UIColor *_insetColor;
- CGFloat _dashPhase;
- NSArray *_dashLengths;
-}
+@interface SSLineView : UIView
///--------------------
/// @name Drawing Lines
View
12 SSToolkit/SSLoadingView.h
@@ -12,17 +12,7 @@
This view will automatically center the text and the activity indicator.
*/
-@interface SSLoadingView : UIView {
-
-@private
-
- UIActivityIndicatorView *_activityIndicatorView;
- NSString *_text;
- UIFont *_font;
- UIColor *_textColor;
- UIColor *_shadowColor;
- CGSize _shadowOffset;
-}
+@interface SSLoadingView : UIView
/**
A view that indicates loading activity to the user. (read-only)
View
10 SSToolkit/SSNavigationController.h
@@ -19,15 +19,7 @@
@see SSViewController
@see SSModalViewController
*/
-@interface SSNavigationController : UINavigationController <SSModalViewController> {
-
-@private
-
- SSViewController *_modalParentViewController;
- BOOL _dismissCustomModalOnVignetteTap;
- CGSize _contentSizeForViewInCustomModal;
- CGPoint _originOffsetForViewInCustomModal;
-}
+@interface SSNavigationController : UINavigationController <SSModalViewController>
@property (nonatomic, assign) SSViewController *modalParentViewController;
@property (nonatomic, assign) BOOL dismissCustomModalOnVignetteTap;
View
9 SSToolkit/SSPickerViewController.h
@@ -13,14 +13,7 @@
A subclass should override the `- (void)loadObjects` and `- (NSString *)cellTextForObject:(id)anObject` methods to
customize this class.
*/
-@interface SSPickerViewController : UITableViewController {
-
-@private
-
- NSArray *_keys;
- id _selectedKey;
- NSIndexPath *_currentIndexPath;
-}
+@interface SSPickerViewController : UITableViewController
@property (nonatomic, retain) NSArray *keys;
@property (nonatomic, retain) id selectedKey;
View
11 SSToolkit/SSPieProgressView.h
@@ -9,16 +9,7 @@
/**
Pie chart style progress pie chart similar to the one in Xcode 3's status bar.
*/
-@interface SSPieProgressView : UIView {
-
-@private
-
- CGFloat _progress;
- CGFloat _pieBorderWidth;
- UIColor *_pieBorderColor;
- UIColor *_pieFillColor;
- UIColor *_pieBackgroundColor;
-}
+@interface SSPieProgressView : UIView
///---------------------------
///@name Managing the Progress
View
13 SSToolkit/SSRatingPicker.h
@@ -15,18 +15,7 @@
To receive changes when the `selectedNumberOfStars` changes, add a target for the `UIControlEventValueChanged` control
event (similar to `UISegmentedControl`).
*/
-@interface SSRatingPicker : UIControl {
-
-@private
-
- CGFloat _selectedNumberOfStars;
- NSUInteger _totalNumberOfStars;
- UIImage *_emptyStarImage;
- UIImage *_filledStarImage;
- CGSize _starSize;
- CGFloat _starSpacing;
- UILabel *_textLabel;
-}
+@interface SSRatingPicker : UIControl
///------------------------------------
/// @name Accessing the Star Attributes
View
22 SSToolkit/SSRatingPicker.m
@@ -20,6 +20,12 @@ @implementation SSRatingPicker
#pragma mark - Accessors
@synthesize selectedNumberOfStars = _selectedNumberOfStars;
+@synthesize totalNumberOfStars = _totalNumberOfStars;
+@synthesize emptyStarImage = _emptyStarImage;
+@synthesize filledStarImage = _filledStarImage;
+@synthesize starSize = _starSize;
+@synthesize starSpacing = _starSpacing;
+@synthesize textLabel = _textLabel;
- (void)setSelectedNumberOfStars:(CGFloat)selectedNumberOfStars {
if (_selectedNumberOfStars == selectedNumberOfStars) {
@@ -46,17 +52,13 @@ - (void)setSelectedNumberOfStars:(CGFloat)selectedNumberOfStars {
}
-@synthesize totalNumberOfStars = _totalNumberOfStars;
-
- (void)settotalNumberOfStars:(NSUInteger)totalNumberOfStars {
_totalNumberOfStars = totalNumberOfStars;
[self setNeedsDisplay];
}
-@synthesize emptyStarImage = _emptyStarImage;
-
- (void)setEmptyStarImage:(UIImage *)emptyStarImage {
[_emptyStarImage release];
_emptyStarImage = [emptyStarImage retain];
@@ -65,8 +67,6 @@ - (void)setEmptyStarImage:(UIImage *)emptyStarImage {
}
-@synthesize filledStarImage = _filledStarImage;
-
- (void)setFilledStarImage:(UIImage *)filledStarImage {
[_filledStarImage release];
_filledStarImage = [filledStarImage retain];
@@ -75,29 +75,21 @@ - (void)setFilledStarImage:(UIImage *)filledStarImage {
}
-@synthesize starSize = _starSize;
-
- (void)setStarSize:(CGSize)starSize {
_starSize = starSize;
[self setNeedsDisplay];
}
-@synthesize starSpacing = _starSpacing;
-
- (void)setStarSpacing:(CGFloat)starSpacing {
_starSpacing = starSpacing;
[self setNeedsDisplay];
}
-@synthesize textLabel = _textLabel;
-
-
-#pragma mark
-#pragma mark NSObject
+#pragma mark - NSObject
- (void)dealloc {
[_emptyStarImage release];
View
12 SSToolkit/SSRatingPickerScrollView.h
@@ -11,17 +11,7 @@
@class SSTextField;
@class SSTextView;
-@interface SSRatingPickerScrollView : UIScrollView <UITextViewDelegate> {
-
-@private
-
- UIView *_topView;
- SSGradientView *_gradientView;
- SSRatingPicker *_ratingPicker;
- SSTextField *_titleTextField;
- UIView *_lineView;
- SSTextView *_reviewTextView;
-}
+@interface SSRatingPickerScrollView : UIScrollView <UITextViewDelegate>
@property (nonatomic, retain, readonly) SSRatingPicker *ratingPicker;
@property (nonatomic, retain, readonly) SSTextField *titleTextField;
View
7 SSToolkit/SSRatingPickerScrollView.m
@@ -13,7 +13,12 @@
#import "SSTextView.h"
#import "SSDrawingUtilities.h"
-@implementation SSRatingPickerScrollView
+@implementation SSRatingPickerScrollView {
+ UIView *_topView;
+ SSGradientView *_gradientView;
+ UIView *_lineView;
+}
+
#pragma mark - Accessors
View
22 SSToolkit/SSSegmentedControl.h
@@ -15,27 +15,7 @@ enum {
SSSegmentedControlNoSegment = UISegmentedControlNoSegment
};
-@interface SSSegmentedControl : UIControl {
-
-@private
-
- NSMutableArray *_segments;
- NSInteger _selectedSegmentIndex;
- BOOL _momentary;
- NSMutableDictionary *_segmentMeta;
-
- UIImage *_buttonImage;
- UIImage *_highlightedButtonImage;
- UIImage *_dividerImage;
- UIImage *_highlightedDividerImage;
-
- UIFont *_font;
- UIColor *_textColor;
- UIColor *_disabledTextColor;
- UIColor *_textShadowColor;
- CGSize _textShadowOffset;
- UIEdgeInsets _textEdgeInsets;
-}
+@interface SSSegmentedControl : UIControl
@property (nonatomic, assign, readonly) NSUInteger numberOfSegments;
@property (nonatomic, assign) NSInteger selectedSegmentIndex;
View
7 SSToolkit/SSSegmentedControl.m
@@ -18,7 +18,12 @@ - (id)_metaValueForKey:(NSString *)key segmentIndex:(NSUInteger)index;
- (void)_setMetaValue:(id)value forKey:(NSString *)key segmentIndex:(NSUInteger)index;
@end
-@implementation SSSegmentedControl
+@implementation SSSegmentedControl {
+ NSMutableArray *_segments;
+ NSInteger _selectedSegmentIndex;
+ NSMutableDictionary *_segmentMeta;
+}
+
#pragma mark - Accessors
View
30 SSToolkit/SSSwitch.h
@@ -17,35 +17,7 @@ typedef enum {
SSSwitchLabelStyleAlwaysView, // Always use views
} SSSwitchLabelStyle;
-@interface SSSwitch : UIControl {
-
-@private
-
- BOOL _on;
- SSSwitchStyle _style;
- UIButton *_handle;
- UIImage *_leftHandleImage;
- UIImage *_leftHandleImageHighlighted;
- UIImage *_centerHandleImage;
- UIImage *_centerHandleImageHighlighted;
- UIImage *_rightHandleImage;
- UIImage *_rightHandleImageHighlighted;
- CGFloat _handleWidth;
- CGFloat _handleShadowWidth;
- UIImageView *_onBackgroundImageView;
- UILabel *_onLabel;
- UIView *_onView;
- UIImageView *_offBackgroundImageView;
- UILabel *_offLabel;
- UIView *_offView;
- UIEdgeInsets _trackEdgeInsets;
- SSSwitchLabelStyle _switchLabelStyle;
-
- UIView *_labelMaskView;
- BOOL _dragging;
- CGFloat _dragOffset;
- NSInteger _hitCount;
-}
+@interface SSSwitch : UIControl
@property (nonatomic, assign, getter=isOn) BOOL on;
@property (nonatomic, assign) SSSwitchStyle style;
View
8 SSToolkit/SSSwitch.m
@@ -16,7 +16,13 @@ - (void)_handleDragged:(id)sender event:(UIEvent *)event;
- (void)_handleDraggingEnded:(id)sender;
@end
-@implementation SSSwitch
+@implementation SSSwitch {
+ UIView *_labelMaskView;
+ BOOL _dragging;
+ CGFloat _dragOffset;
+ NSInteger _hitCount;
+}
+
#pragma mark - Accessors
View
8 SSToolkit/SSTableViewController.h
@@ -13,13 +13,7 @@
This class is a SSViewController subclass that is a drop-in replacement for UITableViewController.
*/
-@interface SSTableViewController : SSViewController <UITableViewDataSource, UITableViewDelegate> {
-
-@private
-
- UITableView *_tableView;
- BOOL _clearsSelectionOnViewWillAppear;
-}
+@interface SSTableViewController : SSViewController <UITableViewDataSource, UITableViewDelegate>
/**
Returns the table view managed by the controller object.
View
9 SSToolkit/SSTextField.h
@@ -9,14 +9,7 @@
/**
Simple UITextField subclass to adds text insets.
*/
-@interface SSTextField : UITextField {
-
-@private
-
- UIEdgeInsets _textEdgeInsets;
- UIEdgeInsets _clearButtonEdgeInsets;
- UIColor *_placeholderTextColor;
-}
+@interface SSTextField : UITextField
///------------------------------------
/// @name Accessing the Text Attributes
View
10 SSToolkit/SSTextView.h
@@ -9,15 +9,7 @@
/**
UITextView subclass that adds placeholder support like UITextField has.
*/
-@interface SSTextView : UITextView {
-
-@private
-
- NSString *_placeholder;
- UIColor *_placeholderColor;
-
- BOOL _shouldDrawPlaceholder;
-}
+@interface SSTextView : UITextView
/**
The string that is displayed when there is no other text in the text view.
View
5 SSToolkit/SSTextView.m
@@ -14,7 +14,10 @@ - (void)_textChanged:(NSNotification *)notification;