DoMethod() vs DoMethodA()
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    ausPPC
    Posts: 543 from 2007/8/6
    From: Pending...
    Does anyone know the equivalent function call to DoMethodA() for the following?

    Code:
    Object *App, *Win;

    DoMethod(Win, MUIM_Notify, MUIA_Window_CloseRequest, TRUE, App, 2,
    MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit);
    PPC assembly ain't so bad... ;)
  • »12.03.16 - 03:01
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    r-tea
    Posts: 301 from 2005/3/27
    From: Poland, Zdzies...
    Quote:

    ausPPC wrote:
    Does anyone know the equivalent function call to DoMethodA() for the following?

    Code:
    Object *App, *Win;

    DoMethod(Win, MUIM_Notify, MUIA_Window_CloseRequest, TRUE, App, 2,
    MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit);




    Hope it helps. Here's the AmigaE style of MUI method call.
    Code:
            doMethodA(window, [MUIM_Notify, MUIA_Window_CloseRequest, MUI_TRUE,
    app, 2, MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit])
    Mac mini G4@1,5GHz silent upgrade + Xerox Phaser 3140 + EPSON Perfection 1240U
    Commodore C64C + 2 x 1541II + Datasette + SD-Box

    I miss draggable screens... and do you? I know I'm in a minority unfortunately.
  • »12.03.16 - 07:46
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    ausPPC
    Posts: 543 from 2007/8/6
    From: Pending...
    Thank you, I can see some similarity to what I just found with objdump and a dummy program with an empty call to DoMethodA(). As it turned out, most of the problem I was having came from a messed up pointer to that not-quite-a-taglist given as the second parameter.

    Meaningful documentation would also help. ;)
    PPC assembly ain't so bad... ;)
  • »12.03.16 - 09:23
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    pegasos-sigi2
    Posts: 265 from 2006/8/31
    Quote:

    ausPPC wrote:
    Does anyone know the equivalent function call to DoMethodA() for the following?

    Code:
    Object *App, *Win;

    DoMethod(Win, MUIM_Notify, MUIA_Window_CloseRequest, TRUE, App, 2,
    MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit);



    Try this:

    tag *Tag: = { MUIM_Notify, MUIA_Window_CloseRequest, TRUE, App, 2,MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit,TAG_END};

    DoMethodA(Win,Tag);
    Spreedy - The spreedsheet editor of MorphOS
    Calimero - Do you know about the new DTP Program for MorphOS ?
  • »12.03.16 - 10:19
    Profile