Skip to content

Commit

Permalink
Merge pull request #4 from alexlee002/master
Browse files Browse the repository at this point in the history
fix issue and add new feature -- by Alex Lee
  • Loading branch information
yuhua-chen committed Dec 1, 2014
2 parents 19e47ac + fccbe7e commit 7d4af79
Show file tree
Hide file tree
Showing 3 changed files with 761 additions and 232 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,31 @@
<string>MCLog</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>789CF47E-98B7-4BB5-8400-CD87C045EF74</key>
<string>ssh://github.com/yuhua-chen/MCLog.git</string>
<key>22F9C8F305497B927E2040B29E0DB7F039F7B3DB</key>
<string>https://github.com/alexlee002/MCLog</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>MCLog.xcodeproj/project.xcworkspace</string>
<string>MCLog.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>789CF47E-98B7-4BB5-8400-CD87C045EF74</key>
<key>22F9C8F305497B927E2040B29E0DB7F039F7B3DB</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>ssh://github.com/yuhua-chen/MCLog.git</string>
<string>https://github.com/alexlee002/MCLog</string>
<key>IDESourceControlProjectVersion</key>
<integer>110</integer>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>789CF47E-98B7-4BB5-8400-CD87C045EF74</string>
<string>22F9C8F305497B927E2040B29E0DB7F039F7B3DB</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>789CF47E-98B7-4BB5-8400-CD87C045EF74</string>
<string>22F9C8F305497B927E2040B29E0DB7F039F7B3DB</string>
<key>IDESourceControlWCCName</key>
<string>MCLog_github</string>
<string>MCLog</string>
</dict>
</array>
</dict>
Expand Down
22 changes: 9 additions & 13 deletions MCLog/MCLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,19 @@

#import <Foundation/Foundation.h>

@class MCLogIDEConsoleArea;
#if TARGET_OS_IPHONE
#define LC_ESC @"\xC2\xA0"
#else
#define LC_ESC @"\033"
#endif

@interface NSSearchField (MCLog)
@property (nonatomic, strong) MCLogIDEConsoleArea *consoleArea;
@property (nonatomic, strong) NSTextView *consoleTextView;
@end

@interface MCLogIDEConsoleArea : NSViewController
- (BOOL)_shouldAppendItem:(id)obj;
- (void)_clearText;
@end

// Reset colors
#define LC_RESET LC_ESC @"[0m"

@interface MCLog : NSObject
+ (void)pluginDidLoad:(NSBundle *)bundle;
@end

void replaceShouldAppendItemMethod();
void replaceClearTextMethod();
NSSearchField *getSearchField(id consoleArea);
NSString *hash(id obj);

Loading

0 comments on commit 7d4af79

Please sign in to comment.