Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter doesn't respect newlines #44

Closed
DanielAsher opened this issue Mar 6, 2016 · 3 comments
Closed

Filter doesn't respect newlines #44

DanielAsher opened this issue Mar 6, 2016 · 3 comments

Comments

@DanielAsher
Copy link

Hi,

thanks for a great plugin!

I use XCodeColors and KZLinkedConsole. When filtering with MCLog it looks like newlines are removed and becomes difficult to read.

Could you verify this?

thanks.

@yuhua-chen
Copy link
Owner

I tracked the KZLinkedConsole code. Not verifying in Xocde, but i can tell from the code that we did swizzle the same method. I copied part of the code:

static func swizzleMethods() {
        guard let storageClass = NSClassFromString("NSTextStorage") as? NSObject.Type,
            let textViewClass = NSClassFromString("NSTextView") as? NSObject.Type else {
                return
        }

        do {
            try storageClass.jr_swizzleMethod("fixAttributesInRange:", withMethod: "kz_fixAttributesInRange:")
            try textViewClass.jr_swizzleMethod("mouseDown:", withMethod: "kz_mouseDown:")
        }
        catch {
            Swift.print("Swizzling failed")
        }
    }

For now, these two plugins may not work together. I'm thinking the solution or maybe have discuss with contributor of KZLinkedConsole.

@DanielAsher
Copy link
Author

many thanks for your quick response :)

@DanielAsher
Copy link
Author

Currently MCLog incompatible with KZLinkedConsole.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants