Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

@ItemSelect does not work on method named onItemSelected() #997

Description

@jacobtabak

Here is the generated code:
screen shot 2014-05-12 at 4 39 59 pm

Activity

  1. jacobtabak commented on May 12, 2014

    @jacobtabak
    Author

    A solution would be to change the generated code to:

    GeneratedClass_.this.onItemSelected(false, -1)

  2. WonderCsabo commented on May 12, 2014

    @WonderCsabo
    Member

    This is true, but why would one create a method with a general name like onItemSelected? A good thing in AA is that we do not have to name our methods with restrictions due to overriding.

  3. jacobtabak commented on May 12, 2014

    @jacobtabak
    Author

    Not sure why I chose to name my method like that, but it took me 5 minutes to figure out this error message:

    screen shot 2014-05-12 at 4 51 04 pm

    If the point is to save time (rather than waste it), and the fix is easy, why not? :)

  4. jacobtabak commented on May 12, 2014

    @jacobtabak
    Author

    By the way, @WonderCsabo I'm not sure what else I would want to name this method. It's a method that gets called when an item is selected... concise and intuitive, and following common naming conventions in my project.

  5. WonderCsabo commented on May 12, 2014

    @WonderCsabo
    Member

    OK.
    I just realized that we already handle onItemSelected that way, so we indeed should do the same for onNothingSelected.

  6. added this to the 3.1 milestone on May 31, 2014
  7. WonderCsabo commented on May 31, 2014

    @WonderCsabo
    Member

    @DayS This can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions