Lc 5.5.4 Xcode 6 all good but ios browser bug?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Jamesplank
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 23
Joined: Sat Jul 09, 2011 10:03 am

Lc 5.5.4 Xcode 6 all good but ios browser bug?

Post by Jamesplank » Mon Feb 18, 2013 5:50 am

I've upgrade to 6.1 and Xcode 4.6 and 5.5.4 plays nicely which is great, but...
Only in the simulator?
The problem is with the ios native browser. My app worked in 5.5.3
But is Broken in the newest release.
I don't know if its a bug. But no matter what I load my app onto iPhone 4S, ipad mini or ipad 3
It crashes after the card is open and the browser is displayed.
I can't find any thing in the pre open card or open card or reopen stack that cause the problem
Everything works well until the end when nothing else happens.
As I said its fine in the simulator but crashes on real hardware.
Anyone else can confirm this is a problem?

Cheers James

Jamesplank
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 23
Joined: Sat Jul 09, 2011 10:03 am

Re: Lc 5.5.4 Xcode 6 all good but ios browser bug?

Post by Jamesplank » Mon Feb 18, 2013 5:52 am

I'll try the sample for the browser that comes with lc and post results.

macnomad2
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 63
Joined: Sat Oct 28, 2006 10:04 pm

Re: Lc 5.5.4 Xcode 6 all good but ios browser bug?

Post by macnomad2 » Mon Feb 18, 2013 10:17 am

Thanks for the alert. My apps rely strongly on this feature. Now I am afraid of using 5.5.4 until you reassure us !

Randy Hengst
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 157
Joined: Thu Jun 29, 2006 4:16 pm

Re: Lc 5.5.4 Xcode 6 all good but ios browser bug?

Post by Randy Hengst » Mon Feb 18, 2013 3:12 pm

Just a quick thought... I've had that crash happen during development when I left the old version of the app on the iPad and let the install process replace it. So, now I manually delete a version of the app before I put the new one on the iPad.

Jamesplank
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 23
Joined: Sat Jul 09, 2011 10:03 am

Re: Lc 5.5.4 Xcode 6 all good but ios browser bug?

Post by Jamesplank » Mon Feb 18, 2013 10:22 pm

The plot thickens
The example mobile browser app is ok and works on ipad mini. That's the good news.
As for deleting the app completely and installing complete new version, thnk you for the heads up, but Unfortuantely it didn't work. So the bug is abit deeper.
I'll keep on digging. I have a feeling it may be based around some of the environment settings. I'll let you know if I find it.
Cheers

Jamesplank
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 23
Joined: Sat Jul 09, 2011 10:03 am

Re: Lc 5.5.4 Xcode 6 all good but ios browser bug?

Post by Jamesplank » Mon Feb 18, 2013 11:48 pm

I'm losing it.
Tell me the right answer here
If I'm on a card "start"

And in a button on card start i have code
=======================
Goto card "next"
Answer "does this pop up appear"
====================

Does the answer command work
I always thought it didn't because the instruction flow went to the "next" card
And continued there?

Is this what everyone expects?
Or do y ou expect the rest of the code in the button to execute as well as going to the card?
Ie the answer command to execute?


Please help

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Lc 5.5.4 Xcode 6 all good but ios browser bug?

Post by Simon » Tue Feb 19, 2013 12:15 am

It's what I would expect.
The on mouseUp handler should finish after the preOpenCard and openCard scripts.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Jamesplank
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 23
Joined: Sat Jul 09, 2011 10:03 am

Re: Lc 5.5.4 Xcode 6 all good but ios browser bug?

Post by Jamesplank » Tue Feb 19, 2013 12:26 am

Ok it's a bug in my code
I use a generic touchend command to make a generic menu respond pretty
Problem is when the command in the menu takes me to a different card
The touchend on the first card still fires but refers to
An environment that has now changed.

The browser is all good.
I'm the one thats broken :-)

Thanks all for your help

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Lc 5.5.4 Xcode 6 all good but ios browser bug?

Post by Simon » Tue Feb 19, 2013 12:47 am

Try adding a location to your touchEnd like:
on touchEnd
set the loc of grp "menu" of this cd to 0,0,0,0

That "of this cd" will prevent an error when you move to the "next" cd

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply