REALGetPluginData

  1. 9 months ago

    Grant S

    12 Dec 2018 Pre-Release Testers, Xojo Pro Sydney, Australia

    Greetings all,

    I'm trying to access the super class data properties of my plugin class. From what I gather I have to use REALGetPluginData, but I'm having trouble working out how to achieve this.

    Can anyone please post a quick example in C++?

    Cheers
    Grant

    We always use ClassData macro:

    ClassData (CURLClass, instance, CURLClassData, me);

    for super class, just use the Class for super and the structure for super.

  2. Christian S

    12 Dec 2018 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Answer Germany

    We always use ClassData macro:

    ClassData (CURLClass, instance, CURLClassData, me);

    for super class, just use the Class for super and the structure for super.

  3. Björn E

    12 Dec 2018 Pre-Release Testers, Xojo Pro Iceland
    Edited 9 months ago

    Use this one here if the super is not in same plugin:

    void * REALGetPluginData( REALobject obj, REALclassRef classRef )

    Then you get the ClassRef for the Super class you want with REALGetClassRef I think it was then you pass that to REALGetPluginData along with the instance

  4. Grant S

    12 Dec 2018 Pre-Release Testers, Xojo Pro Sydney, Australia

    Thanks Christian. I'm sure I've tried this previously and it didn't work.

    Thanks for your reply as well Björn.

    Cheers
    Grant

or Sign Up to reply!