Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-581] cannot add synthetic events to window

GitHub Issuen/a
Resolution Date2011-04-17T01:53:34.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M09
Labelsevents, ios, release-1.6.0, synthetic, ui, window
AssigneeReggie Seagraves


The documentation for window suggests you can add an fire a synthetic event for a window.

See bottom of:
https://developer.appcelerator.com/apidoc/mobile/1.0/Titanium.UI.Window"> https://developer.appcelerator.com/apidoc/mobile/1.0/Titanium.UI.Wi...

However, the following example app.js does not work:


The only synthetic events I've been able to successfully add/fire have been global application ones (Ti.App.addEventListener...). This however, has its own architectural issues namely, that you are now responsible for tearing it down yourself.

Tested against iphone simulator.


  1. Jae Hess 2011-04-15

    +1 for this ticket

  2. hal 2011-04-15

    This ticket has been duplicated at #536. I propose that #536 be closed, as #581 explains the problem in more simple terms.

  3. Noah 2011-04-15

    Thanks for following up on this ticket. Enough time has passed that I'm not certain whether or not this is an issue for more current releases of titanium. If I recall correctly, my concern at the time was there were cases where registering/deregistering a global event listener became non-trivial (a global event would register itself twice and tearing it down involved adding another event listener and a handle to the listener) whereas the convenience of a window is that it manages its own lifecycle.

  4. hal 2011-04-15

    Yes, I agree, it would be a useful facility.
    I can confirm that, for the latest build (dated 2nd Oct) on Android emulator at least, this bug still exists.

  5. hal 2011-04-15

    See #2018 for the android ticket/fix

  6. Stephen Tramer 2011-04-15

    Tested against 1.6.0 RC1 for iOS. Checked test into bugtests.

  7. Jon Alter 2011-04-15

    Associated Helpdesk Ticket

    Waiting for docs

JSON Source