home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Scripting Problem < prev    next >
Encoding:
Internet Message Format  |  1996-08-01  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Scripting Problem
  2. Sent:        8/1/96 4:03 PM
  3. Received:    8/1/96 4:16 PM
  4. From:        Serge Froment, sfroment@odyssee.net
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Dear ODF Experts:
  9.  
  10. I have implemented scripting similar to ODFDraw except that my
  11. FW_MScriptable objects are generated on the fly by my FW_CElementIterator
  12. and they are reference counted so they are released when no longer needed
  13. (I override AcquireScriptable and ReleaseScriptable in a way similar to
  14. FW_CScriptableCollection).
  15.  
  16. When I write a script like "get myProperty of first myClass", I actually
  17. get the property. But when I write a script like "get first myClass", I get
  18. an error message saying "Can't make myClass 1 into myClass 1". Similar
  19. script with ODFDraw returns a result like "shape 1 of application ODFDraw
  20. Sample".
  21.  
  22. I have stepped the code from FW_MScriptable::GetContainedObject and it does
  23. its job without error, including FW_InsertScriptableIntoDesc. However, I
  24. don't really understand what FW_InsertScriptableIntoDesc does and where the
  25. error comes from.
  26.  
  27. Does someone have a clue?
  28.  
  29. Serge
  30.  
  31.  
  32.