home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / scnote / editcdev.010 / PEditCdev.make < prev    next >
Encoding:
Text File  |  1988-08-17  |  1.3 KB  |  48 lines

  1. #
  2. #    Macintosh Developer Technical Support
  3. #
  4. #    EditText Sample Control Panel Device
  5. #
  6. #    EditCdev
  7. #
  8. #    PEditCdev.make    -    Make Source
  9. #
  10. #    Copyright ⌐ 1988 Apple Computer, Inc.
  11. #    All rights reserved.
  12. #
  13. #    Versions:    1.0                    8/88
  14. #
  15. #    Components:    EditCdev.p            August 1, 1988
  16. #                EditCdev.c            August 1, 1988
  17. #                EditCdev.r            August 1, 1988
  18. #                PEditCdev.make        August 1, 1988
  19. #                CEditCdev.make        August 1, 1988
  20. #
  21. #    EditCdev is a sample Control Panel device (cdev) that 
  22. #    demonstrates the usage of the edit-related messages.  
  23. #    EditCdev demonstrates how to implement an editText item
  24. #    in a Control Panel Device.  It utilizes the new undo, cut, copy,
  25. #    paste, and delete messages that are sent to cdevs in
  26. #    response to user menu selections.
  27. #
  28. #    It is comprised of two editText items that can be edited 
  29. #    and moved between via the mouse or tab key.
  30. #
  31.  
  32. SrcName            =    EditCdev
  33. Lang            =    P
  34. CdevName        =    {Lang}{SrcName}
  35.  
  36. Objs            =    {SrcName}.{Lang}.o ╢
  37.                     "{Libraries}"Interface.o
  38.  
  39. {CdevName}        ──    {Objs} {CdevName}.make
  40.         Link -o {Targ} -rt cdev=-4064 -m TEXTCDEV {Objs} && ╢
  41.             Setfile {CdevName} -a B && ╢
  42.                 Duplicate -y {CdevName} "{SystemFolder}"
  43.  
  44. {CdevName}        ──    {SrcName}.r {CdevName}.make
  45.         Rez -o {Targ} {SrcName}.r -t cdev -c hack -rd -append && ╢
  46.             Setfile {CdevName} -a B && ╢
  47.                 Duplicate -y {CdevName} "{SystemFolder}"
  48.