kishikawakatsumi / SECoreTextView

SECoreTextView is multi style text view.
MIT License
943 stars 143 forks source link

iOS Does Not Compile Properly #1

Closed wolfe719 closed 11 years ago

wolfe719 commented 11 years ago

There is code in CETextView.m (line 265 - color = [textColor createCGColor];) that calls a missing createCGColor member function from the SECompatibility UIColor category.

Here is a patch that fixes that compile error and allows the Demo to run properly (I am confused about attaching a patch):

diff --git a/Lib/SECompatibility.h b/Lib/SECompatibility.h index 46b5cfd140320eb983794dcad24d7a07866acfc4..7f0d56ec0bc90692abd51c9cbe155397c3e1cf1e 100644 --- a/Lib/SECompatibility.h +++ b/Lib/SECompatibility.h @@ -29,8 +29,11 @@ extern NSString * const NSLinkAttributeName;

+- (CGColorRef)createCGColor; + @end

+

else

import <Cocoa/Cocoa.h>

diff --git a/Lib/SECompatibility.m b/Lib/SECompatibility.m index 3dc01e8e5b82844e5110584f5a5927dc1487f7af..2fbd9552c5fa4b009b5ee1f8eb8da75ed7a3f69b 100644 --- a/Lib/SECompatibility.m +++ b/Lib/SECompatibility.m @@ -23,6 +23,11 @@ NSString * const NSLinkAttributeName = @"NSLink"; return [UIColor colorWithRed:0.286 green:0.549 blue:0.859 alpha:1.000]; }

+- (CGColorRef)createCGColor +{

wolfe719 commented 11 years ago

Here is the patch in a gist: https://gist.github.com/wolfe719/5453161

kishikawakatsumi commented 11 years ago

Thanks. Fix at d19a96d.