Search found 18 matches

by rcmills
Wed Jun 12, 2019 10:32 pm
Forum: iOS Deployment
Topic: "selectionChanged" handler in native scroller
Replies: 1
Views: 166

Re: "selectionChanged" handler in native scroller

So, I have with further testing, found that the selectionChanged message is only sometimes captured in a field which does not contain enough text to need scrolling. It is very capricious! It changes from testing to testing, with no code change at all!

Is this a LC bug??
by rcmills
Tue Jun 11, 2019 7:35 pm
Forum: iOS Deployment
Topic: "selectionChanged" handler in native scroller
Replies: 1
Views: 166

"selectionChanged" handler in native scroller

I am having difficulty in capturing a selectionChanged message in an iOS native scrolling field, when it is locked. My handler works when there is not enough text in the field to need the scroller to activate scrolling (text not filling entire field rectangle), but when it does, even if I try using ...
by rcmills
Tue Jun 11, 2019 1:07 pm
Forum: Talking LiveCode
Topic: mouseChunk in a loop
Replies: 8
Views: 477

Re: mouseChunk in a loop

It appears to me that in a locked native iOS scroller field, the selectionChanged message is not being sent, unless the amount of text in the field is not great enough to need scrolling. The code in my last post works fine then, but if the field scrolls, the on selectionChanged handler is never call...
by rcmills
Mon Jun 10, 2019 5:58 pm
Forum: Talking LiveCode
Topic: mouseChunk in a loop
Replies: 8
Views: 477

Re: mouseChunk in a loop

Thanks, that worked - in the development environment. But now, how can I make it work in iOS, with a locked native scroller text field? I have set a flag to stop the scrolling in the scrollerDidScroll and scrollerEndDecelerate handlers to allow selection motion without scrolling. This does stop the ...
by rcmills
Mon Jun 10, 2019 2:10 am
Forum: Talking LiveCode
Topic: mouseChunk in a loop
Replies: 8
Views: 477

Re: mouseChunk in a loop

The red and blue if/then segment is just there for my testing. I was trying to see if the loop was hanging up on the get mouseChunk statement, but it is not. It's just that the mouseChunk doesn't ever update after the first time in the loop.
by rcmills
Mon Jun 10, 2019 2:05 am
Forum: Talking LiveCode
Topic: mouseChunk in a loop
Replies: 8
Views: 477

Re: mouseChunk in a loop

Thanks,

I see what you are saying, but I am trying to do this in a locked text field. I should have stated that in the original post, but no changes are allowed in the field, other than code driven.
by rcmills
Sun Jun 09, 2019 9:28 pm
Forum: Talking LiveCode
Topic: mouseChunk in a loop
Replies: 8
Views: 477

mouseChunk in a loop

I want to select text for highlighting in a field. It seems most reasonable to use the mouseChunk function recursively while waiting for the mouse to be up. But it seems that the mouseChunk only returns an initial set of values when the mouseDown occurs, and not agains until another mouseDown. Is th...
by rcmills
Sat Jun 01, 2019 9:02 pm
Forum: iOS Deployment
Topic: Known iOS scroller issue?
Replies: 1
Views: 225

Re: Known iOS scroller issue?

Oops! It was an orientation issue. I change my trap and found there is an "unknown" orientation which wasn't trapping for ... :P
by rcmills
Sat Jun 01, 2019 8:51 pm
Forum: iOS Deployment
Topic: Known iOS scroller issue?
Replies: 1
Views: 225

Known iOS scroller issue?

I am using native controls in scrolling fields in an iOS app, and have noticed that when I have scrolled to the very bottom of a field on the iPhone and then tilt the phone back towards being parallel to the ground, the text jumps almost an entire field height. This is not enough of a tilt to trigge...
by rcmills
Fri May 31, 2019 5:27 pm
Forum: iOS Deployment
Topic: iOS app has begun opening very slowly
Replies: 10
Views: 578

Re: iOS app has begun opening very slowly

Thanks very much!
by rcmills
Fri May 31, 2019 5:07 pm
Forum: iOS Deployment
Topic: iOS app has begun opening very slowly
Replies: 10
Views: 578

Re: iOS app has begun opening very slowly

Thanks, Brian.

Does that mean I don't need to include the devControls substack, either?
by rcmills
Fri May 31, 2019 1:45 pm
Forum: iOS Deployment
Topic: iOS app has begun opening very slowly
Replies: 10
Views: 578

Re: iOS app has begun opening very slowly

I finally reverted to the last faster opening file, and slowly re-debugged, checking at each step on the simulator for opening times. I have re-acheived a (hopefully) bug free state, and still have a good (around 1 second) opening time. The file size is around 237 KB. The slow loading file was aroun...
by rcmills
Thu May 30, 2019 3:44 pm
Forum: iOS Deployment
Topic: iOS app has begun opening very slowly
Replies: 10
Views: 578

Re: iOS app has begun opening very slowly

Not to any significant degree. The 5 text files are identical to prior to the speed change, and are not read by readDataFile(), though they are loaded with the app during the start up, I assume. Only one (at a time) of them is read in here (the 4 lines beginning with: get "/mb.version." & fld "versi...
by rcmills
Thu May 30, 2019 12:17 am
Forum: iOS Deployment
Topic: iOS app has begun opening very slowly
Replies: 10
Views: 578

Re: iOS app has begun opening very slowly

Thanks Jean-Marc, I tried it, and the relevant code now reads: on preOpenStack set acceleratedRendering of this stack to true send "doAfterPreopenStack" to me in 1 milliseconds end preOpenStack on doAfterPreopenStack lock screen if the environment is "mobile" then insert the script of button "Common...
by rcmills
Wed May 29, 2019 8:44 pm
Forum: iOS Deployment
Topic: iOS app has begun opening very slowly
Replies: 10
Views: 578

iOS app has begun opening very slowly

I have been working on an iOS app for a good while. It has recently begun opening very slowly on my iPhone 6+ It used to open inside of 3 seconds, but now takes more than 11-12 seconds from splash screen to full opening. It includes 5 fairly large text data files (around 4+ MB each) but opened fast ...

Go to advanced search