Discussion:
Scintilla on iOS
Anas Chakfeh
2014-04-22 15:23:46 UTC
Permalink
Hello,

I ve been wondering if you already have Scintilla on iOS. I searched a lot, but I couldn't find anything.

If not, how hard do you think it would take to make it work?
because I am planning to do it, and I think it is doable. Please correct if I am wrong

All the best
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Jason Haslam
2014-04-23 00:40:44 UTC
Permalink
I got the Qt port mostly working on iOS with just a few tweaks. It only took a couple of hours. The biggest challenge was getting keyboard input from the virtual keyboard to work correctly. It might be even easier starting from the Cocoa port.

Jason
Post by Anas Chakfeh
Hello,
I ve been wondering if you already have Scintilla on iOS. I searched a lot, but I couldn't find anything.
If not, how hard do you think it would take to make it work?
because I am planning to do it, and I think it is doable. Please correct if I am wrong
All the best
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Neil Hodgson
2014-04-24 02:29:13 UTC
Permalink
I have worked on an iOS port for a commercial product but this is unlikely to become open source.

The OS X Cocoa port uses NSScrollView for scrolling but the iOS equivalent, UIScrollView, has some problems. Unlike NSScrollView, UIScrollView allocates bitmaps to cover the entire document area. With retina resolutions this quickly uses up all the limited memory in an iPad. Apple's solution to this, CATiledLayer has a couple more problems, the biggest one being that it calls application code to draw from multiple threads. Scintilla is not thread-safe and making it sufficiently thread-safe for this drawing is complex.
I got the Qt port mostly working on iOS with just a few tweaks. ...
It might be even easier starting from the Cocoa port.
I wonder if Qt is using UIScrollView so will have problems with large documents or if it has implemented scrolling in a different way that minimises memory use.

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Jason Haslam
2014-04-24 05:44:43 UTC
Permalink
Post by Neil Hodgson
I wonder if Qt is using UIScrollView so will have problems with large documents or if it has implemented scrolling in a different way that minimises memory use.
It doesn't use UIScrollView directly, but it claims to scroll its contents in the same way as UIScrollView (QIOSInputContext::scroll in the ios platform plugin). So it probably will have the same problem. I never tested anything large.

Jason
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...