Getting into LiveCode for iOS? Ask your questions here.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
kcwvc52
- Posts: 49
- Joined: Sun Jun 12, 2011 9:55 pm
Post
by kcwvc52 » Thu Jun 16, 2011 6:54 pm
first i have noticed if you click away from the pickwheel it will select whatever object is focused. is this a bug or is this correct cause that kinda sucks? also i have made this work by adding a cancel option to the pickwheel. The problem her is when i tell when i say
Code: Select all
put "Cancel" &return before the first item of card button "thepicker"
this causes it to have weird alien symbols beside cancel in the picker when run on the ipad? is this a noted bug or do we have a workaround.
i would like to use this code
Code: Select all
put "Cancel" after the last item item of card button "thepicker"
but i can't set the focus to the last item. still the weird alien symbols with this as well. any workaround suggestions for these problems would be much appreciated.
-
kcwvc52
- Posts: 49
- Joined: Sun Jun 12, 2011 9:55 pm
Post
by kcwvc52 » Fri Jun 17, 2011 10:38 pm
no suggestions?
-
Dixie
- Livecode Opensource Backer

- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
Post
by Dixie » Sat Jun 18, 2011 6:11 am
Hi...
From page 36 of the iOS release notes...
"There are two modes of operation of the pick command, depending on the value of initialIndex. If initialIndex is non-zero, the operation will act as a means to change an existing selection. The item specified by the initial index will be hilited (checked or hilited on iPad), and will be returned by default in the case the user does not choose a new item.
If initialIndex is zero, the operation will act as a means to select from a list of options. The user will be able to cancel the operation by either clicking 'Cancel' (iPhone) or touching outside of the popover (iPad). If the operation is cancelled, 0 will be returned; otherwise the selected item will be
returned."
There is no bug to be found here...
be well
Dixie
-
kcwvc52
- Posts: 49
- Joined: Sun Jun 12, 2011 9:55 pm
Post
by kcwvc52 » Sat Jun 18, 2011 6:28 am
then why is it putting weird symbols after the cancel when i run it on ios device? that is not mentioned in what you said.
also where do you find that documentation?
-
Dixie
- Livecode Opensource Backer

- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
Post
by Dixie » Sat Jun 18, 2011 7:01 am
Hi...
Does this stack work for you ?
be well
Dixie
-
Attachments
-
- pickWheelTest.livecode.zip
- (6.56 KiB) Downloaded 304 times
-
kcwvc52
- Posts: 49
- Joined: Sun Jun 12, 2011 9:55 pm
Post
by kcwvc52 » Sat Jun 18, 2011 7:17 am
yea i have pickwheel working fine. the only issue i'm having is that when i try to load the pickwheel programmatically it puts extra characters into "Cancel" which is after the last item of the pickwheel. when i select cancel and the extra characters on ios. it still accepts it as cancel but it just doesn't make the interface as clean as i like it to be. it only does this when i run it on ios device? and thanks for the docs
note: i am doing this on the ipad which doesn't make a difference.
-
Dixie
- Livecode Opensource Backer

- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
Post
by Dixie » Sat Jun 18, 2011 7:23 am
Hi...
I don't really understand when you say...
kcwvc52 wrote:it puts extra characters into "Cancel" which is after the last item of the pickwheel
Could you post your script and what you are trying to load into the pickWheel ?
be well
Dixie
-
kcwvc52
- Posts: 49
- Joined: Sun Jun 12, 2011 9:55 pm
Post
by kcwvc52 » Sat Jun 18, 2011 7:40 am
i can only post part of the code for confidentiality reasons. but i can assure you none of the information after cancel is being entered anywhere in code. i spent hours checking the other day i have just come back around to this issue.
Code: Select all
put "Cancel" after the last item of card button "thepicker" of card "2"
this is what it looks like running on simulator and the device

- Screen shot 2011-06-18 at 1.32.09 AM.png (14.17 KiB) Viewed 10617 times
-
Dixie
- Livecode Opensource Backer

- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
Post
by Dixie » Sat Jun 18, 2011 8:07 am
Hi...
Well, you're probably right... your secret would not be safe with me

but for me anyway, it is not possible to give you any suggestions based on that one line of code... your on your own.
take care,
Dixie
-
kcwvc52
- Posts: 49
- Joined: Sun Jun 12, 2011 9:55 pm
Post
by kcwvc52 » Sat Jun 18, 2011 8:18 am
well here is a sample application that does the same thing follow the instructions exactly as it says and you will see what i mean. it did not mess up the first time i ran this program but it messed up the second time?
Last edited by
kcwvc52 on Sat Jun 18, 2011 8:20 am, edited 1 time in total.
-
Dixie
- Livecode Opensource Backer

- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
Post
by Dixie » Sat Jun 18, 2011 8:19 am
Hi...
You didn't attach the file ...
be well
Dixie
-
kcwvc52
- Posts: 49
- Joined: Sun Jun 12, 2011 9:55 pm
Post
by kcwvc52 » Sat Jun 18, 2011 8:39 am
check again i updated it i forgot to compress it the first time any ill send it here again
-
Dixie
- Livecode Opensource Backer

- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
Post
by Dixie » Sat Jun 18, 2011 9:46 am
Hi...
It does not seem to like the word 'Cancel'... I have changed the script in button 1 of your stack... Instead of using 'Cancel', I have substituted it with 'Cancel '... notice the addition of the space... it is working here..
be well
Dixie
-
Attachments
-
- returnedExample.livecode.zip
- (1.85 KiB) Downloaded 296 times
-
kcwvc52
- Posts: 49
- Joined: Sun Jun 12, 2011 9:55 pm
Post
by kcwvc52 » Sat Jun 18, 2011 10:34 pm
seems like i have tried this and it didn't work. i know for sure i tried using "Cancel!" and it still put random characters after it. i can't remember if i tried the space.