waiting for input.

Former Member
Former Member

How do I wait for one class to do input before continuing in another.  i.e.

...

function onMenuItem(item) {

WatchUi.pushView(
  new WatchUi.Picker({
    :title=>new WatchUi.Text({:text=>"Number Picker"}),
    :pattern=>[new MyNumberFactory()],
    :defaults=>[0]}),
  new myRoutesDelayPickerDelegate(),
  WatchUi.SLIDE_UP );

// I need to wait here until the input happens

... other processing

WatchUi.pushView ( view with data dependant on picker )

...

When I try this the view with data dependant on the picker has already processed when the input from the picker is gathered.