[quote=92975:@Thomas Tempelmann]CEF has been converted for Cocoa months ago. I wonder what old code people keep finding.
The official version is currently here: https://code.google.com/p/custom-editfield/
Though, sadly, you’ll need a svn client to download it.[/quote]
Thomas, on the site it says “Caution: When using this code in a Mac Cocoa app, text input with dead keys (e.g. by first pressing the ^ key, then a vovel key) will not work. To fix this, this code would need to use Xojo’s TextInputCanvas plugin, which it currently doesn’t.”
[quote=56174:@Mike Charlesworth]
What is the best free control available for syntax highlighting. In particular I am looking for CSS highlighting but will write a definition if required. Code folding and autocomplete would be a bonus but not critical.[/quote]
If the custom edit field were based on the TextInputCanvas then it could handle text input correctly
It’s not - so it doesn’t
You cannot do it correctly in a canvas using just the key events etc
There’s far too much that a “correct” Cocoa text client needs to do
[quote=92975:@Thomas Tempelmann]CEF has been converted for Cocoa months ago. I wonder what old code people keep finding.
The official version is currently here: https://code.google.com/p/custom-editfield/
Though, sadly, you’ll need a svn client to download it.[/quote]
I just grabbed r90 from there and tried the examples in Xojo 2014 r2 and both of them crashed hard (as in, Problem Reporter to send to Apple). If there’s some secret to make it work in Xojo it’s still secret to me…
I just modifed CEF for use with a translator I am writing… and did notice the version of code had been modified for Cocoa… but don’t recall exactly where I got it from but I thought it was from a link above in this very topic.
It is working fine with Cocoa… not sure how it will work with Retina… but for now that is a secondary concern