SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Oct 2002
    Location
    Earth (I think!)
    Posts
    92
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Object Map: How does the name of the accessor get created?

    The following steps outline an issue I bumped into regarding using the same descriptive name even after the object has been deleted...

    1. Create an empty object map myMap.
    2. create an empty script myScript, select myMap to be used with this script.
    3. Map an object (with a btn as a child)
    4. change descriptive name of the btn to myBtn
    5. accept all the objects
    6. save the object map
    7. Associate myScript with myMap
    8. Add object myBtn to myScript.
    You should have an accessor myBtn() in the file myScriptHelper

    9. Delete myBtn from the map
    10. Map myBtn again
    11. repeat 5-8

    At no time do you have more than one myBtn object, however at this point the accessor method in the helper file is myBtn2()

    How does XDE keep track of how many objects with the descriptive name myBtn have existed?

    This is not very useful, deleting the object should remove it completely, so that I can reuse the descriptive name again without worrying about a counter being incremented.

    Any info would be greatly appreciated.

    cheers!
    Let go Luke!

  2. #2
    Member
    Join Date
    Oct 2002
    Location
    Earth (I think!)
    Posts
    92
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Object Map: How does the name of the accessor get created?

    For each and every script is an associated file [scriptname].rftdef

    This is an xml file, you can open it with IExplorer.

    After adding/deleteing/adding an object the file will have the following within the file...

    - <TestObject L=".ScriptDefNameMapElement">
    <Name>CancelBtn</Name>
    <ID>Q.1ERWp4qjeZ5A:790v:JMK67wP:8WU</ID>
    <Role>Button</Role>
    <Deleted>false</Deleted>
    </TestObject>
    - <TestObject L=".ScriptDefNameMapElement">
    <Name>CancelBtn2</Name>
    <ID>c.1ERWp4qjeZ5A:790v:JMK67wP:8WT</ID>
    <Role>Button</Role>
    <Deleted>false</Deleted>
    </TestObject>

    Notice the two CancelBtn entries.

    However, the helper file will only have the accessors for CancelBtn2.

    You can manually delete all lines between and including <TestObject></TestObject>.

    this then resets the descriptive naming.

    Since the helper file is automatically generated you don't have to worry about editing it to remove references to CancelBtn2.
    Let go Luke!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:03 PM.

Copyright BetaSoft Inc.