Permalink
Browse files

Updated comments and renamed SSDrawingMacros to SSDrawingUtilities

  • Loading branch information...
1 parent d3d3fa7 commit e8c3ce32568fe72a4b73a0a2af586945759d7903 @soffes soffes committed Mar 28, 2011
Showing with 126 additions and 105 deletions.
  1. +1 −1 Documentation/Rakefile
  2. +1 −1 Other Sources/SSToolkit_Prefix.pch
  3. +8 −8 SSToolkit.xcodeproj/project.pbxproj
  4. +1 −1 SSToolkit/NSArray+SSToolkitAdditions.h
  5. +1 −1 SSToolkit/NSArray+SSToolkitAdditions.m
  6. +1 −1 SSToolkit/NSData+SSToolkitAdditions.h
  7. +1 −1 SSToolkit/NSData+SSToolkitAdditions.m
  8. +1 −1 SSToolkit/NSDate+SSToolkitAdditions.h
  9. +1 −1 SSToolkit/NSDate+SSToolkitAdditions.m
  10. +1 −1 SSToolkit/NSDictionary+SSToolkitAdditions.h
  11. +1 −1 SSToolkit/NSDictionary+SSToolkitAdditions.m
  12. +1 −1 SSToolkit/NSString+SSToolkitAdditions.h
  13. +1 −1 SSToolkit/NSString+SSToolkitAdditions.m
  14. +1 −1 SSToolkit/NSURL+SSToolkitAdditions.h
  15. +1 −1 SSToolkit/NSURL+SSToolkitAdditions.m
  16. +1 −1 SSToolkit/SSAddressBarTextField.h
  17. +2 −2 SSToolkit/SSAddressBarTextField.m
  18. +1 −1 SSToolkit/SSAddressBarTextFieldBackgroundView.h
  19. +1 −1 SSToolkit/SSAddressBarTextFieldBackgroundView.m
  20. +1 −1 SSToolkit/SSAddressBarTextFieldBackgroundViewInnerView.h
  21. +1 −1 SSToolkit/SSAddressBarTextFieldBackgroundViewInnerView.m
  22. +1 −1 SSToolkit/SSBadgeView.m
  23. +1 −1 SSToolkit/SSCategories.h
  24. +10 −1 SSToolkit/SSCollectionView.h
  25. +2 −2 SSToolkit/SSCollectionView.m
  26. +1 −1 SSToolkit/SSCollectionViewController.h
  27. +2 −2 SSToolkit/SSCollectionViewController.m
  28. +1 −1 SSToolkit/SSCollectionViewItem.h
  29. +2 −2 SSToolkit/SSCollectionViewItem.m
  30. +1 −1 SSToolkit/SSConcurrentOperation.h
  31. +1 −1 SSToolkit/SSConcurrentOperation.m
  32. +16 −4 SSToolkit/{SSDrawingMacros.h → SSDrawingUtilities.h}
  33. +3 −3 SSToolkit/{SSDrawingMacros.m → SSDrawingUtilities.m}
  34. +1 −1 SSToolkit/SSGradientView.h
  35. +2 −2 SSToolkit/SSGradientView.m
  36. +1 −1 SSToolkit/SSHUDView.h
  37. +2 −2 SSToolkit/SSHUDView.m
  38. +1 −1 SSToolkit/SSIndicatorLabel.h
  39. +1 −1 SSToolkit/SSIndicatorLabel.m
  40. +1 −1 SSToolkit/SSLabel.h
  41. +1 −1 SSToolkit/SSLabel.m
  42. +1 −1 SSToolkit/SSLineView.h
  43. +1 −1 SSToolkit/SSLineView.m
  44. +1 −1 SSToolkit/SSLoadingView.h
  45. +1 −1 SSToolkit/SSLoadingView.m
  46. +1 −1 SSToolkit/SSModalViewController.h
  47. +1 −1 SSToolkit/SSNavigationController.h
  48. +1 −1 SSToolkit/SSNavigationController.m
  49. +1 −1 SSToolkit/SSPickerViewController.h
  50. +1 −1 SSToolkit/SSPickerViewController.m
  51. +1 −1 SSToolkit/SSPieProgressView.h
  52. +2 −2 SSToolkit/SSPieProgressView.m
  53. +1 −1 SSToolkit/SSRatingPickerScrollView.m
  54. +1 −1 SSToolkit/SSSegmentedControl.m
  55. +1 −1 SSToolkit/SSSwitch.h
  56. +1 −1 SSToolkit/SSSwitch.m
  57. +1 −1 SSToolkit/SSTableViewController.h
  58. +2 −2 SSToolkit/SSTableViewController.m
  59. +1 −1 SSToolkit/SSTextField.h
  60. +1 −1 SSToolkit/SSTextField.m
  61. +1 −1 SSToolkit/SSTextView.h
  62. +1 −1 SSToolkit/SSTextView.m
  63. +3 −3 SSToolkit/SSToolkit.h
  64. +1 −1 SSToolkit/SSViewController.h
  65. +1 −1 SSToolkit/SSViewController.m
  66. +1 −1 SSToolkit/SSWebView.h
  67. +1 −1 SSToolkit/SSWebView.m
  68. +1 −1 SSToolkit/UIApplication+SSToolkitAdditions.h
  69. +1 −1 SSToolkit/UIApplication+SSToolkitAdditions.m
  70. +1 −1 SSToolkit/UIColor+SSToolkitAdditions.h
  71. +1 −1 SSToolkit/UIColor+SSToolkitAdditions.m
  72. +1 −1 SSToolkit/UIControl+SSToolkitAdditions.h
  73. +1 −1 SSToolkit/UIControl+SSToolkitAdditions.m
  74. +1 −1 SSToolkit/UIDevice+SSToolkitAdditions.h
  75. +1 −1 SSToolkit/UIDevice+SSToolkitAdditions.m
  76. +1 −1 SSToolkit/UIImage+SSToolkitAdditions.h
  77. +1 −1 SSToolkit/UIImage+SSToolkitAdditions.m
  78. +1 −1 SSToolkit/UIScrollView+SSToolkitAdditions.h
  79. +1 −1 SSToolkit/UIScrollView+SSToolkitAdditions.m
  80. +1 −1 SSToolkit/UIView+SSToolkitAdditions.h
  81. +1 −1 SSToolkit/UIView+SSToolkitAdditions.m
  82. +1 −1 SSToolkit/UIViewController+SSToolkitAdditions.h
  83. +1 −1 SSToolkit/UIViewController+SSToolkitAdditions.m
View
2 Documentation/Rakefile
@@ -53,7 +53,7 @@ task :bundle do
puts 'You must `gem install bundler` to run rake tasks' and return
end
- puts 'Updating gems...'
+ # puts 'Updating gems...'
system "bundle install --gemfile=#{gemfile} --quiet"
end
View
2 Other Sources/SSToolkit_Prefix.pch
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 9/9/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
// Prefix header for all source files of the 'SSToolkit' target in the 'SSToolkit' project.
//
View
16 SSToolkit.xcodeproj/project.pbxproj
@@ -12,7 +12,7 @@
B20AC06A1267988600687143 /* SSTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = B20AC0681267988600687143 /* SSTableViewController.m */; };
B215045F10583A7300409ED4 /* SSToolkit_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = B215045E10583A7300409ED4 /* SSToolkit_Prefix.pch */; };
B215051210583BBB00409ED4 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B215051110583BBB00409ED4 /* UIKit.framework */; };
- B21D2E00121F2FE500161E66 /* SSDrawingMacros.m in Sources */ = {isa = PBXBuildFile; fileRef = B21D2DFF121F2FE500161E66 /* SSDrawingMacros.m */; };
+ B21D2E00121F2FE500161E66 /* SSDrawingUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = B21D2DFF121F2FE500161E66 /* SSDrawingUtilities.m */; };
B227D2EA124931590078A059 /* NSDictionary+SSToolkitAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = B227D2E8124931590078A059 /* NSDictionary+SSToolkitAdditions.h */; };
B227D2EB124931590078A059 /* NSDictionary+SSToolkitAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = B227D2E9124931590078A059 /* NSDictionary+SSToolkitAdditions.m */; };
B247ABAE1300930200971EC0 /* SSSegmentedControl.h in Headers */ = {isa = PBXBuildFile; fileRef = B247ABAC1300930200971EC0 /* SSSegmentedControl.h */; };
@@ -30,7 +30,7 @@
B24E9E4D121DC29A0085F81E /* SSCategories.h in Headers */ = {isa = PBXBuildFile; fileRef = B24E9E0F121DC29A0085F81E /* SSCategories.h */; };
B24E9E4E121DC29A0085F81E /* SSConcurrentOperation.h in Headers */ = {isa = PBXBuildFile; fileRef = B24E9E10121DC29A0085F81E /* SSConcurrentOperation.h */; };
B24E9E4F121DC29A0085F81E /* SSConcurrentOperation.m in Sources */ = {isa = PBXBuildFile; fileRef = B24E9E11121DC29A0085F81E /* SSConcurrentOperation.m */; };
- B24E9E50121DC29A0085F81E /* SSDrawingMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = B24E9E12121DC29A0085F81E /* SSDrawingMacros.h */; };
+ B24E9E50121DC29A0085F81E /* SSDrawingUtilities.h in Headers */ = {isa = PBXBuildFile; fileRef = B24E9E12121DC29A0085F81E /* SSDrawingUtilities.h */; };
B24E9E51121DC29A0085F81E /* SSGradientView.h in Headers */ = {isa = PBXBuildFile; fileRef = B24E9E13121DC29A0085F81E /* SSGradientView.h */; };
B24E9E52121DC29A0085F81E /* SSGradientView.m in Sources */ = {isa = PBXBuildFile; fileRef = B24E9E14121DC29A0085F81E /* SSGradientView.m */; };
B24E9E53121DC29A0085F81E /* SSHUDView.h in Headers */ = {isa = PBXBuildFile; fileRef = B24E9E15121DC29A0085F81E /* SSHUDView.h */; };
@@ -118,7 +118,7 @@
B20AC0681267988600687143 /* SSTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SSTableViewController.m; sourceTree = "<group>"; };
B215045E10583A7300409ED4 /* SSToolkit_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSToolkit_Prefix.pch; sourceTree = "<group>"; };
B215051110583BBB00409ED4 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- B21D2DFF121F2FE500161E66 /* SSDrawingMacros.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SSDrawingMacros.m; sourceTree = "<group>"; };
+ B21D2DFF121F2FE500161E66 /* SSDrawingUtilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SSDrawingUtilities.m; sourceTree = "<group>"; };
B227D2E8124931590078A059 /* NSDictionary+SSToolkitAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSDictionary+SSToolkitAdditions.h"; sourceTree = "<group>"; };
B227D2E9124931590078A059 /* NSDictionary+SSToolkitAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSDictionary+SSToolkitAdditions.m"; sourceTree = "<group>"; };
B247ABAC1300930200971EC0 /* SSSegmentedControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSSegmentedControl.h; sourceTree = "<group>"; };
@@ -137,7 +137,7 @@
B24E9E0F121DC29A0085F81E /* SSCategories.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSCategories.h; sourceTree = "<group>"; };
B24E9E10121DC29A0085F81E /* SSConcurrentOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSConcurrentOperation.h; sourceTree = "<group>"; };
B24E9E11121DC29A0085F81E /* SSConcurrentOperation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SSConcurrentOperation.m; sourceTree = "<group>"; };
- B24E9E12121DC29A0085F81E /* SSDrawingMacros.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSDrawingMacros.h; sourceTree = "<group>"; };
+ B24E9E12121DC29A0085F81E /* SSDrawingUtilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSDrawingUtilities.h; sourceTree = "<group>"; };
B24E9E13121DC29A0085F81E /* SSGradientView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSGradientView.h; sourceTree = "<group>"; };
B24E9E14121DC29A0085F81E /* SSGradientView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SSGradientView.m; sourceTree = "<group>"; };
B24E9E15121DC29A0085F81E /* SSHUDView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSHUDView.h; sourceTree = "<group>"; };
@@ -422,8 +422,8 @@
children = (
B24E9E10121DC29A0085F81E /* SSConcurrentOperation.h */,
B24E9E11121DC29A0085F81E /* SSConcurrentOperation.m */,
- B24E9E12121DC29A0085F81E /* SSDrawingMacros.h */,
- B21D2DFF121F2FE500161E66 /* SSDrawingMacros.m */,
+ B24E9E12121DC29A0085F81E /* SSDrawingUtilities.h */,
+ B21D2DFF121F2FE500161E66 /* SSDrawingUtilities.m */,
B28218BC12FA6AE100BAF3C6 /* SSToolkitDefines.h */,
B28218BD12FA6AE100BAF3C6 /* SSToolkitDefines.m */,
);
@@ -473,7 +473,7 @@
B24E9E4B121DC29A0085F81E /* NSURL+SSToolkitAdditions.h in Headers */,
B24E9E4D121DC29A0085F81E /* SSCategories.h in Headers */,
B24E9E4E121DC29A0085F81E /* SSConcurrentOperation.h in Headers */,
- B24E9E50121DC29A0085F81E /* SSDrawingMacros.h in Headers */,
+ B24E9E50121DC29A0085F81E /* SSDrawingUtilities.h in Headers */,
B24E9E51121DC29A0085F81E /* SSGradientView.h in Headers */,
B24E9E53121DC29A0085F81E /* SSHUDView.h in Headers */,
B24E9E55121DC29A0085F81E /* SSIndicatorLabel.h in Headers */,
@@ -599,7 +599,7 @@
B24E9E7C121DC29A0085F81E /* UIScrollView+SSToolkitAdditions.m in Sources */,
B24E9E7E121DC29A0085F81E /* UIView+SSToolkitAdditions.m in Sources */,
B24E9E80121DC29A0085F81E /* UIViewController+SSToolkitAdditions.m in Sources */,
- B21D2E00121F2FE500161E66 /* SSDrawingMacros.m in Sources */,
+ B21D2E00121F2FE500161E66 /* SSDrawingUtilities.m in Sources */,
B27B1A1C12241D3400111EA2 /* SSCollectionView.m in Sources */,
B27B1A2312241D6F00111EA2 /* SSCollectionViewItem.m in Sources */,
B267D3461226CE0400B66519 /* SSCollectionViewController.m in Sources */,
View
2 SSToolkit/NSArray+SSToolkitAdditions.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 8/19/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
@interface NSArray (SSToolkitAdditions)
View
2 SSToolkit/NSArray+SSToolkitAdditions.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 8/19/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
#import "NSArray+SSToolkitAdditions.h"
View
2 SSToolkit/NSData+SSToolkitAdditions.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 9/29/08.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2008-2011 Sam Soffes. All rights reserved.
//
@interface NSData (SSToolkitAdditions)
View
2 SSToolkit/NSData+SSToolkitAdditions.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 9/29/08.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2008-2011 Sam Soffes. All rights reserved.
//
#import "NSData+SSToolkitAdditions.h"
View
2 SSToolkit/NSDate+SSToolkitAdditions.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 5/26/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
@interface NSDate (SSToolkitAdditions)
View
2 SSToolkit/NSDate+SSToolkitAdditions.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 5/26/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "NSDate+SSToolkitAdditions.h"
View
2 SSToolkit/NSDictionary+SSToolkitAdditions.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 9/21/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
@interface NSDictionary (SSToolkitAdditions)
View
2 SSToolkit/NSDictionary+SSToolkitAdditions.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 9/21/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "NSDictionary+SSToolkitAdditions.h"
View
2 SSToolkit/NSString+SSToolkitAdditions.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 6/22/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
@interface NSString (SSToolkitAdditions)
View
2 SSToolkit/NSString+SSToolkitAdditions.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 6/22/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
#import "NSString+SSToolkitAdditions.h"
View
2 SSToolkit/NSURL+SSToolkitAdditions.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 4/27/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
@interface NSURL (SSToolkitAdditions)
View
2 SSToolkit/NSURL+SSToolkitAdditions.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 4/27/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "NSURL+SSToolkitAdditions.h"
View
2 SSToolkit/SSAddressBarTextField.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 2/8/11.
-// Copyright 2010 Sam Soffes. All rights reserved.
+// Copyright 2011 Sam Soffes. All rights reserved.
//
#import "SSTextField.h"
View
4 SSToolkit/SSAddressBarTextField.m
@@ -3,12 +3,12 @@
// SSToolkit
//
// Created by Sam Soffes on 2/8/11.
-// Copyright 2010 Sam Soffes. All rights reserved.
+// Copyright 2011 Sam Soffes. All rights reserved.
//
#import "SSAddressBarTextField.h"
#import "SSAddressBarTextFieldBackgroundView.h"
-#import "SSDrawingMacros.h"
+#import "SSDrawingUtilities.h"
#import "UIImage+SSToolkitAdditions.h"
@implementation SSAddressBarTextField
View
2 SSToolkit/SSAddressBarTextFieldBackgroundView.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 2/8/11.
-// Copyright 2010 Sam Soffes. All rights reserved.
+// Copyright 2011 Sam Soffes. All rights reserved.
//
@class SSAddressBarTextFieldBackgroundViewInnerView;
View
2 SSToolkit/SSAddressBarTextFieldBackgroundView.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 2/8/11.
-// Copyright 2010 Sam Soffes. All rights reserved.
+// Copyright 2011 Sam Soffes. All rights reserved.
//
#import "SSAddressBarTextFieldBackgroundView.h"
View
2 SSToolkit/SSAddressBarTextFieldBackgroundViewInnerView.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 2/8/11.
-// Copyright 2010 Sam Soffes. All rights reserved.
+// Copyright 2011 Sam Soffes. All rights reserved.
//
@interface SSAddressBarTextFieldBackgroundViewInnerView : UIView {
View
2 SSToolkit/SSAddressBarTextFieldBackgroundViewInnerView.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 2/8/11.
-// Copyright 2010 Sam Soffes. All rights reserved.
+// Copyright 2011 Sam Soffes. All rights reserved.
//
#import "SSAddressBarTextFieldBackgroundViewInnerView.h"
View
2 SSToolkit/SSBadgeView.m
@@ -7,7 +7,7 @@
//
#import "SSBadgeView.h"
-#import "SSDrawingMacros.h"
+#import "SSDrawingUtilities.h"
@interface SSBadgeView (PrivateMethod)
- (CGSize)_textSize;
View
2 SSToolkit/SSCategories.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 9/17/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
// This setting of 1 is best if you copy the source into your project.
View
11 SSToolkit/SSCollectionView.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 6/11/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSCollectionViewItem.h"
@@ -53,6 +53,11 @@ typedef enum {
*/
@property (nonatomic, assign) id<SSCollectionViewDelegate> delegate;
+/**
+ @brief The minimum column spacing.
+
+ The default is 0.
+ */
@property (nonatomic, assign) CGFloat minimumColumnSpacing;
/**
@@ -75,8 +80,12 @@ typedef enum {
*/
@property (nonatomic, assign) BOOL allowsSelection;
+/**
+ @brief The internal scroll view of the collection view. The delegate <strong>must not</strong> be overridden.
+ */
@property (nonatomic, retain, readonly) UIScrollView *scrollView;
+
@property (nonatomic, assign, readonly) NSInteger numberOfSections;
/**
View
4 SSToolkit/SSCollectionView.m
@@ -3,15 +3,15 @@
// SSToolkit
//
// Created by Sam Soffes on 6/11/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSCollectionView.h"
#import "SSCollectionViewInternal.h"
#import "SSCollectionViewItem.h"
#import "SSCollectionViewItemInternal.h"
#import "SSCollectionViewTableViewCell.h"
-#import "SSDrawingMacros.h"
+#import "SSDrawingUtilities.h"
#import "UIView+SSToolkitAdditions.h"
@interface SSCollectionView (PrivateMethods)
View
2 SSToolkit/SSCollectionViewController.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 8/26/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSViewController.h"
View
4 SSToolkit/SSCollectionViewController.m
@@ -3,11 +3,11 @@
// SSToolkit
//
// Created by Sam Soffes on 8/26/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSCollectionViewController.h"
-#import "SSDrawingMacros.h"
+#import "SSDrawingUtilities.h"
@implementation SSCollectionViewController
View
2 SSToolkit/SSCollectionViewItem.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 6/11/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
typedef enum {
View
4 SSToolkit/SSCollectionViewItem.m
@@ -3,15 +3,15 @@
// SSToolkit
//
// Created by Sam Soffes on 6/11/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSCollectionViewItem.h"
#import "SSCollectionViewItemInternal.h"
#import "SSCollectionView.h"
#import "SSCollectionViewInternal.h"
#import "SSLabel.h"
-#import "SSDrawingMacros.h"
+#import "SSDrawingUtilities.h"
@implementation SSCollectionViewItem
View
2 SSToolkit/SSConcurrentOperation.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 8/5/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
/**
View
2 SSToolkit/SSConcurrentOperation.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 8/5/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSConcurrentOperation.h"
View
20 SSToolkit/SSDrawingMacros.h → SSToolkit/SSDrawingUtilities.h
@@ -1,20 +1,32 @@
//
-// SSDrawingMacros.h
+// SSDrawingUtilities.h
// SSToolkit
//
// Created by Sam Soffes on 4/22/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
-#ifndef SSDRAWINGMACROS
-#define SSDRAWINGMACROS
+#ifndef SSDRAWINGUTILITIES
+#define SSDRAWINGUTILITIES
+/**
+ A macro that converts a number from degress to radians.
+ @param d number in degrees
+ @returns The number converted to radians.
+ */
#define DEGREES_TO_RADIANS(d) ((d) * 0.0174532925199432958f)
+
+/**
+ A macro that converts a number from radians to degrees.
+ @param r number in radians
+ @returns The number converted to degrees.
+ */
#define RADIANS_TO_DEGREES(r) ((r) * 57.29577951308232f)
#endif
extern CGFloat SSFLimit(CGFloat f, CGFloat min, CGFloat max);
+
extern CGRect CGRectSetX(CGRect rect, CGFloat x);
extern CGRect CGRectSetY(CGRect rect, CGFloat y);
extern CGRect CGRectSetWidth(CGRect rect, CGFloat width);
View
6 SSToolkit/SSDrawingMacros.m → SSToolkit/SSDrawingUtilities.m
@@ -1,12 +1,12 @@
//
-// SSDrawingMacros.m
+// SSDrawingUtilities.m
// SSToolkit
//
// Created by Sam Soffes on 8/20/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
-#import "SSDrawingMacros.h"
+#import "SSDrawingUtilities.h"
CGFloat SSFLimit(CGFloat f, CGFloat min, CGFloat max) {
return fminf(fmaxf(f, min), max);
View
2 SSToolkit/SSGradientView.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 10/27/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
// Greatly inspired by BWGradientBox. http://brandonwalkin.com/bwtoolkit
//
View
4 SSToolkit/SSGradientView.m
@@ -3,11 +3,11 @@
// SSToolkit
//
// Created by Sam Soffes on 10/27/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
#import "SSGradientView.h"
-#import "SSDrawingMacros.h"
+#import "SSDrawingUtilities.h"
@interface SSGradientView (PrivateMethods)
View
2 SSToolkit/SSHUDView.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 9/29/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
@class SSHUDWindow;
View
4 SSToolkit/SSHUDView.m
@@ -3,12 +3,12 @@
// SSToolkit
//
// Created by Sam Soffes on 9/29/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
#import "SSHUDView.h"
#import "SSHUDWindow.h"
-#import "SSDrawingMacros.h"
+#import "SSDrawingUtilities.h"
#import "UIView+SSToolkitAdditions.h"
#import <QuartzCore/QuartzCore.h>
View
2 SSToolkit/SSIndicatorLabel.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 7/13/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
/**
View
2 SSToolkit/SSIndicatorLabel.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 7/13/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSIndicatorLabel.h"
View
2 SSToolkit/SSLabel.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 7/12/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
typedef enum {
View
2 SSToolkit/SSLabel.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 7/12/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSLabel.h"
View
2 SSToolkit/SSLineView.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 4/12/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
/**
View
2 SSToolkit/SSLineView.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 4/12/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSLineView.h"
View
2 SSToolkit/SSLoadingView.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 7/8/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
/**
View
2 SSToolkit/SSLoadingView.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 7/8/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
#import "SSLoadingView.h"
View
2 SSToolkit/SSModalViewController.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 7/14/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
@class SSViewController;
View
2 SSToolkit/SSNavigationController.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 10/15/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSModalViewController.h"
View
2 SSToolkit/SSNavigationController.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 10/15/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSNavigationController.h"
View
2 SSToolkit/SSPickerViewController.h
@@ -9,7 +9,7 @@
// customize this class.
//
// Created by Sam Soffes on 10/9/08.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2008-2011 Sam Soffes. All rights reserved.
//
@interface SSPickerViewController : UITableViewController {
View
2 SSToolkit/SSPickerViewController.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 10/9/08.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2008-2011 Sam Soffes. All rights reserved.
//
#import "SSPickerViewController.h"
View
2 SSToolkit/SSPieProgressView.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 4/22/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
/**
View
4 SSToolkit/SSPieProgressView.m
@@ -3,11 +3,11 @@
// SSToolkit
//
// Created by Sam Soffes on 4/22/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSPieProgressView.h"
-#import "SSDrawingMacros.h"
+#import "SSDrawingUtilities.h"
CGFloat const kAngleOffset = -90.0f;
View
2 SSToolkit/SSRatingPickerScrollView.m
@@ -11,7 +11,7 @@
#import "SSRatingPicker.h"
#import "SSTextField.h"
#import "SSTextView.h"
-#import "SSDrawingMacros.h"
+#import "SSDrawingUtilities.h"
@implementation SSRatingPickerScrollView
View
2 SSToolkit/SSSegmentedControl.m
@@ -7,7 +7,7 @@
//
#import "SSSegmentedControl.h"
-#import "SSDrawingMacros.h"
+#import "SSDrawingUtilities.h"
#import "UIImage+SSToolkitAdditions.h"
static NSString *kSSSegmentedControlEnabledKey = @"enabled";
View
2 SSToolkit/SSSwitch.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 11/19/10.
-// Copyright 2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
typedef enum {
View
2 SSToolkit/SSSwitch.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 11/19/10.
-// Copyright 2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSSwitch.h"
View
2 SSToolkit/SSTableViewController.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 10/14/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSViewController.h"
View
4 SSToolkit/SSTableViewController.m
@@ -3,11 +3,11 @@
// SSToolkit
//
// Created by Sam Soffes on 10/14/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSTableViewController.h"
-#import "SSDrawingMacros.h"
+#import "SSDrawingUtilities.h"
@implementation SSTableViewController
View
2 SSToolkit/SSTextField.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 3/11/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
/**
View
2 SSToolkit/SSTextField.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 3/11/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSTextField.h"
View
2 SSToolkit/SSTextView.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 8/18/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
/**
View
2 SSToolkit/SSTextView.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 8/18/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSTextView.h"
View
6 SSToolkit/SSToolkit.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 3/19/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
// This setting of 1 is best if you copy the source into your project.
@@ -45,7 +45,7 @@
#import "SSViewController.h"
// Misc
-#import "SSDrawingMacros.h"
+#import "SSDrawingUtilities.h"
#import "SSConcurrentOperation.h"
#else
@@ -84,7 +84,7 @@
#import <SSToolkit/SSViewController.h>
// Misc
-#import <SSToolkit/SSDrawingMacros.h>
+#import <SSToolkit/SSDrawingUtilities.h>
#import <SSToolkit/SSConcurrentOperation.h>
#endif
View
2 SSToolkit/SSViewController.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 7/14/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSModalViewController.h"
View
2 SSToolkit/SSViewController.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 7/14/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSViewController.h"
View
2 SSToolkit/SSWebView.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 4/26/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
@protocol SSWebViewDelegate;
View
2 SSToolkit/SSWebView.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 4/26/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "SSWebView.h"
View
2 SSToolkit/UIApplication+SSToolkitAdditions.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 10/20/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
@interface UIApplication (SSToolkitAdditions)
View
2 SSToolkit/UIApplication+SSToolkitAdditions.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 10/20/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "UIApplication+SSToolkitAdditions.h"
View
2 SSToolkit/UIColor+SSToolkitAdditions.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 4/19/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
@interface UIColor (SSToolkitAdditions)
View
2 SSToolkit/UIColor+SSToolkitAdditions.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 4/19/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "UIColor+SSToolkitAdditions.h"
View
2 SSToolkit/UIControl+SSToolkitAdditions.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 4/19/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
@interface UIControl (SSToolkitAdditions)
View
2 SSToolkit/UIControl+SSToolkitAdditions.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 4/19/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "UIControl+SSToolkitAdditions.h"
View
2 SSToolkit/UIDevice+SSToolkitAdditions.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 7/13/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
@interface UIDevice (SSToolkitAdditions)
View
2 SSToolkit/UIDevice+SSToolkitAdditions.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 7/13/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
#import "UIDevice+SSToolkitAdditions.h"
View
2 SSToolkit/UIImage+SSToolkitAdditions.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 11/17/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
@interface UIImage (SSToolkitAdditions)
View
2 SSToolkit/UIImage+SSToolkitAdditions.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 11/17/09.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2009-2011 Sam Soffes. All rights reserved.
//
#import "UIImage+SSToolkitAdditions.h"
View
2 SSToolkit/UIScrollView+SSToolkitAdditions.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 4/12/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
@interface UIScrollView (SSToolkitAdditions)
View
2 SSToolkit/UIScrollView+SSToolkitAdditions.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 4/12/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "UIScrollView+SSToolkitAdditions.h"
View
2 SSToolkit/UIView+SSToolkitAdditions.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 2/15/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
@interface UIView (SSToolkitAdditions)
View
2 SSToolkit/UIView+SSToolkitAdditions.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 2/15/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "UIView+SSToolkitAdditions.h"
View
2 SSToolkit/UIViewController+SSToolkitAdditions.h
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 6/21/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
@interface UIViewController (SSToolkitAdditions)
View
2 SSToolkit/UIViewController+SSToolkitAdditions.m
@@ -3,7 +3,7 @@
// SSToolkit
//
// Created by Sam Soffes on 6/21/10.
-// Copyright 2009-2010 Sam Soffes. All rights reserved.
+// Copyright 2010-2011 Sam Soffes. All rights reserved.
//
#import "UIViewController+SSToolkitAdditions.h"

0 comments on commit e8c3ce3

Please sign in to comment.