I\'m using Sencha Touch for a mobile app and am using the MVC functionality in it. I like Sencha quite a bit but I\'m having a little trouble when it comes to passing data
I am not too familiar with this MVC pattern but I have a lot of experience with ExtJS and in my opinion the best way for components to communicate is with events. In your example you would create an event on the Panel like 'addAddress' and the Map would listen for that event. And when the address was set in the panel you would call.
this.addEvent('addAddress');
this.fireEvent('addAddress', this, address);
and the map would have a listener like
onAddress: function(panel, address) {
// do something with the address
}
and in your top level app you would add the listener.
app.mon(panel, 'addAddress', map.onAddress, this);
Typically it's best for your components together this way so that the Panel isn't dependent on the Map and vice-versa