home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Genie / Projects / Pedestal / Source / Sources / Object Models / PedModelApplication.cc
Encoding:
C/C++ Source or Header  |  2000-06-24  |  1.2 KB  |  57 lines

  1. /*    ======================
  2.  *    PedModelApplication.cc
  3.  *    ======================
  4.  */
  5.  
  6. #include "PedestalDebugging.h"
  7.  
  8. //#include <DiskInit.h>
  9. //#include <Menus.h>
  10. //#include <ToolUtils.h>
  11. //#include <Windows.h>
  12.  
  13. #include "PedModelApplication.hh"
  14.  
  15. // Apple Event Assistant classes.
  16. #include "AEARegistry.h"
  17. //#include "AEAHandlerGetData.hh"
  18. //#include "AEAAccessorWildFromNull.hh"
  19. //#include "AEAAccessorWildFromList.hh"
  20. //#include "AEAAccessorModelFromWild.hh"
  21. //#include "AEAModelName.hh"
  22.  
  23. // Pedestal classes
  24. #include "PedApplication.hh"
  25. //#include "Ped1AppProcess.hh"
  26. //#include "PedHandlerOpenApp.hh"
  27. //#include "PedHandlerQuit.hh"
  28. //#include "PedWindow.hh"
  29. //#include "PedAgent.hh"
  30. //#include "PedAgentAboutBox.hh"
  31.  
  32. // Xtep classes
  33. //#include "XAutoReleasePoolObj.hh"
  34.  
  35.  
  36. PedModelApplication::PedModelApplication(PedApplication &inSubject)
  37. : mSubject(inSubject)
  38. {
  39. }
  40.  
  41. PedModelApplication::~PedModelApplication()
  42. {
  43. }
  44.  
  45. void
  46. PedModelApplication::GetProperty(DescType inDesiredClass, DescType inPropertyID, AEAModel *&outObject) const
  47. {
  48. #if 1
  49.     if (inPropertyID == pName) {
  50.         AEAModelName *model = new AEAModelName(*this, mSubject.Name());
  51.         model->SetTransience(true);
  52.         outObject = model;
  53.     } else
  54. #endif
  55.         ThrowOSErr_(errAENoSuchObject);
  56. }
  57.