Request a pull of a memory issue fix in DTAttributedTextContentView.m when using block #163

Merged
merged 1 commit into from Apr 9, 2012
View
2 Core/Source/DTAttributedTextContentView.m
@@ -660,7 +660,7 @@ - (DTCoreTextLayoutFrame *)layoutFrame
if (_delegateFlags.delegateSupportsNotificationBeforeTextBoxDrawing)
{
- DTAttributedTextContentView *weakself = self;
+ __weak DTAttributedTextContentView *weakself = self;
[_layoutFrame setTextBlockHandler:^(DTTextBlock *textBlock, CGRect frame, CGContextRef context, BOOL *shouldDrawDefaultBackground) {
BOOL result = [weakself->_delegate attributedTextContentView:weakself shouldDrawBackgroundForTextBlock:textBlock frame:frame context:context forLayoutFrame:weakself->_layoutFrame];
View
4 DTCoreText.xcodeproj/project.pbxproj
@@ -1769,7 +1769,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = /usr/include/libxml2;
- IPHONEOS_DEPLOYMENT_TARGET = 4.3;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
SDKROOT = iphoneos;
};
name = Debug;
@@ -1789,7 +1789,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = /usr/include/libxml2;
- IPHONEOS_DEPLOYMENT_TARGET = 4.3;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
SDKROOT = iphoneos;
};