Permalink
Browse files

Forgot to release the block in dealloc. Also change debugger to lldb

  • Loading branch information...
1 parent 6d6d1bd commit 4ec27f0f40665a283d78006f939df53ebf4b318e @alexzielenski committed Apr 6, 2012
View
2 ScrollToRefresh.xcodeproj/project.pbxproj
@@ -156,7 +156,7 @@
FA121D521472FB2A00FED3BA /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0420;
+ LastUpgradeCheck = 0430;
ORGANIZATIONNAME = "Alex Zielenski";
};
buildConfigurationList = FA121D551472FB2A00FED3BA /* Build configuration list for PBXProject "ScrollToRefresh" */;
View
6 ScrollToRefresh/src/EQSTRClipView.h
@@ -25,9 +25,5 @@
#import <AppKit/AppKit.h>
-@interface EQSTRClipView : NSClipView {
-}
-- (BOOL)isRefreshing;
-- (NSView*)headerView;
-- (CGFloat)minimumScroll;
+@interface EQSTRClipView : NSClipView
@end
View
12 ScrollToRefresh/src/EQSTRClipView.m
@@ -26,6 +26,16 @@
#import "EQSTRClipView.h"
#import "EQSTRScrollView.h"
+@interface EQSTRScrollView (Private)
+- (CGFloat)minimumScroll;
+@end
+
+@interface EQSTRClipView ()
+- (BOOL)isRefreshing;
+- (NSView *)headerView;
+- (CGFloat)minimumScroll;
+@end
+
@implementation EQSTRClipView
- (NSPoint)constrainScrollPoint:(NSPoint)proposedNewOrigin { // this method determines the "elastic" of the scroll view or how high it can scroll without resistence.
NSPoint constrained = [super constrainScrollPoint:proposedNewOrigin];
@@ -58,7 +68,7 @@ - (BOOL)isRefreshing {
return [(EQSTRScrollView *)self.superview isRefreshing];
}
-- (NSView*)headerView {
+- (NSView *)headerView {
return [(EQSTRScrollView *)self.superview refreshHeader];
}
View
6 ScrollToRefresh/src/EQSTRScrollView.m
@@ -55,6 +55,12 @@ @implementation EQSTRScrollView
@synthesize refreshArrow = _refreshArrow;
@synthesize refreshBlock = _refreshBlock;
+#pragma mark - Dealloc
+- (void)dealloc {
+ self.refreshBlock = nil;
+ [super dealloc];
+}
+
#pragma mark - Create Header View
- (void)viewDidMoveToWindow {

0 comments on commit 4ec27f0

Please sign in to comment.