Matt

Results 7 comments of Matt

FYI, this looks like a duplicate of #1215, #1191, and #554.

According to [this SO thread](https://stackoverflow.com/questions/2795798/is-nspasteboard-thread-safe) and [Apple documentation on the topic](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Multithreading/ThreadSafetySummary/ThreadSafetySummary.html#//apple_ref/doc/uid/20000736-126010), in Cocoa, "mutable objects are generally not thread-safe". I think this justifies putting the `NSPasteboard` in an `RwLock` at...

[The trait documentation](https://docs.rs/num-traits/0.2.14/num_traits/cast/trait.ToPrimitive.html) gives a more precise definition of being representable, which matches the current behavior: > A value can be represented by the target type when it lies within...

I've made a no-jQuery, pure-JS fork: https://github.com/MattX/highlight-within-textarea. Please let me know if you have any issues!

Thanks! I made this fork assuming you weren't interested in merging it (if nothing else, because it changes the API), so I changed the package info / demo page to...

@rwwagner90—that's correct, I didn't port the destroy part because I didn't really need it... If you want to submit a PR to add that I'll be happy to merge it...

Sorry about the delay! I've added an example, let me know if more is needed. The way you're proposing works just as well for what I need, but I think...