iOS - picking from a scrolling list

Graham Samuel livfoss at mac.com
Thu Apr 5 09:03:25 EDT 2012


Chris, thanks again: you learn something new every day! As often in LC, this means that there are two pretty different ways of doing the same thing. While you were asleep (probably, as I see you're minus 6 hours compared to me), mobGUI support (in the person of John Dixon) clarified his first example, which I found worked but I couldn't see how to modify.  I was impressed with John's solution as well as his speed of response. He showed my how to alter the size and spacing of the text in the list etc.  One has to understand which properties to alter within a group. Perhaps with a few more setProp handlers the group could be made to look like a 'normal' LC object, with all its properties 'on the outside' so to speak, but I will be content with what I have just now.

Underlying all this is something I really can't understand at all, which is how a LiveCode scrolling field can be incorporated into an iOS object which has been instantiated at runtime, and they then somehow run in concert, with the data (lines of text) being in the LC object but at the same time being scrolled by the iOS object with all the rolling and bouncing behaviour which is expected. This is subtle and confusing, and I'd love to read a tutorial on this which would illuminate it for me. Meanwhile at least I can get on with my app.

Graham

On Wed, 04 Apr 2012 13:38:39 -0600, Chris Sheffield <cmsheffield at me.com> wrote:

> You can change the appearance. So it can be a picker wheel or a scrolling list of values to pick from, much like you described in your initial post. At least on the iPad. Maybe the appearance is always the same on an iPhone/iPod Touch. Not totally sure. Anyway, I have an iPad app where I've used the scrolling list version and it works well. It would be nice if it had some other options available, like being able to set the position or being able to apply text styles.
> 
> Chris
> 
> --
> Chris Sheffield
> Read Naturally, Inc.
> www.readnaturally.com
> 
> On Apr 4, 2012, at 1:23 PM, Graham Samuel wrote:
> 
>> Chris, thanks. I have had a look at this (I did not know about it at all) but it isn't really what I had in mind. I want a long list like a set of names in a notebook, so the style I'm looking for is much more like Apple's Contacts app, which does present such a list and allows one to pick from it, rather than a wheel where one sees very few names at any one time, and it is quite hard to whizz from one end of say a 100-item list to another. I'm pleased to say that I've had a reply from MobGUI and I'll see what that looks like and report back.
>> 
>> Graham
>> 
>> OnWed, 04 Apr 2012 10:42:51 -0600, Chris Sheffield <cmsheffield at me.com> wrote:
>> 
>>> 
>>> Check out iphonePick, or mobilePick if you want to be cross platform. That should do what you want. It's all explained in the dictionary.
>>> 
>>> Chris
>>> 
>>> 
>>> --
>>> Chris Sheffield
>>> Read Naturally, Inc.
>>> www.readnaturally.com
>>> 
>>> On Apr 4, 2012, at 10:31 AM, Graham Samuel wrote:
>>> 
>>>> In an iOS app I'm developing I would like to use a scrolling text list where the user can drag the whole list up and down (i.e. scroll the list) but can also select a line by touching it.  This type of interaction is permitted in iOS: a simple example is the index of Apple's own Contacts app.
>> [snip]
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 




More information about the use-livecode mailing list