Hi guys,
Apologies for the newbie questions here - I feel like a bit of an idiot, but I've now looked at this so much, I'm now utterly lost and need someone to lead me back out of the woods. I'm not a trained coder, definitely an enthusiastic amateur that knows enough to get myself into trouble, so my question is actually a 2 part question.
1. How can I move information and data back and forth between 'screens' or classes?
2. How can I add more 'screens'?
Example
I have used the 'WebRequest' example to pull JSON information from a website and display it on screen which is working fine. However - all of the 'data' wrangling is contained in the 'View' which, I suspect, probably better belongs in the delegate, however all of my attempts to move this information from the Delegate to the View have failed. I'm aiming to have something similar to the following.
AppDelegate:
_AppView.updateValues(_location, _coords, _date, _tides);
AppView:
function updateValues(_location as String, _coords as String, _date as String, _tides as Float) {
}
Seems such a straightforward task that I have completed before in another app, albeit rote typing some code (which I apparently don't understand) but I cant quite crack it? I guess I am also getting oddly hung-up on this method:onReceive in a few places of the sample as well. If anyone can tell me what is going on here and give me a detailed but basic explanation - or push me in the right direction of some doco, I'd be very appreciative.
Question 2:
I'd like to make a configuration screen for my app to allow people to enter in new locations etc. Is it best to make another .mc and go from there? How does one call a new screen from a menu item?
Cheers,
Matt