home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13256 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  3.1 KB

  1. Path: sparky!uunet!gatech!rpi!usenet.coe.montana.edu!ogicse!das-news.harvard.edu!das!vreddy
  2. From: vreddy@das.harvard.edu (Venkatesh Reddy)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: NOVICE MAC programmer questions
  5. Message-ID: <1992Jul31.151424.6519@das.harvard.edu>
  6. Date: 31 Jul 92 15:14:24 GMT
  7. Article-I.D.: das.1992Jul31.151424.6519
  8. References: <1992Jul28.002330.20244@silvlis.com> <Bs4CJs.67E@news.cso.uiuc.edu>
  9. Sender: usenet@das.harvard.edu (Network News)
  10. Distribution: usa
  11. Organization: Aiken Computation Lab, Harvard University
  12. Lines: 44
  13.  
  14. In article <Bs4CJs.67E@news.cso.uiuc.edu>, tinsel@uiuc.edu (Thomas Aaron Insel) writes:
  15. |> patf@silvlis.com (Pat Fitzgibbons) writes:
  16. |> 
  17. |> >   2. How do people get artwork into their C programs ?
  18. |> >      My girlfriend is an artist and can draw 
  19. |> >      phenominal things on a computer. How do 
  20. |> >      I use these drawings in a program ? Does
  21. |> >      she just use some sort of paint program 
  22. |> >      and run something to convert the drawings
  23. |> >      or is there a special tool for drawing 
  24. |> >      things for a C program ?
  25. |> 
  26. |> This bit is easy.  No conversion, and very few special tools
  27. |> are needed.  Draw your picture in a paint or drawing program, and
  28. |> copy it to the clipboard as a PICT (the usual format for 
  29. |> cut-n-paste of pictures).  Then, use ResEdit to paste these
  30. |> into your program's resource file as PICT resources.  When you
  31. |> want to use one, you can load it with GetPicture() and display
  32. |> it one of many ways--Quickdraw has many commands for manipulating
  33. |> and displaying pictures, or you can set a window to automatically
  34. |> display a certain picture (so you don't have to worry about
  35. |> update events and such).  The details for just about all of this
  36. |> are in Inside Macintosh I.
  37. |> -- 
  38. |> Thomas Aaron Insel (tinsel@uiuc.edu)
  39. |>   I speak for myself, and not for the State or University of Illinois.
  40. |>   "We must not confuse dissent with disloyalty." -- Edward R. Murrow
  41.  
  42. I don't know about hte rest of you, but I find Inside Mac a bit difficult for a beginner to Macintosh programming. First of all, there is the language problem :
  43. Inside Mac is written in pascal pretty much. It is a pain if you want to translate things as a beginner, such as str255 types, etc. I think the best toolbox programming manual I can find (of course, you should STILL HAVE Inside Mac, just don't rely onit... simply reference it) is called :
  44.  
  45.     Macintosh Programming Primer -- Programming in the Toolbox using Think C
  46.     I forget the name of the author
  47.  
  48.     This book has two volumes... the first so far is all I have needed, and it
  49. has a second edition that has special descriptions for System 7, Mac II, color, Resedit 2.1, etc...
  50.  
  51.     However, the second volume still doesn't have a second edition, so it is still stuck in System 6, and worst of all, Resedit 1.something, which is unacceptable to me, since all my Rsedit stuff is 2.1.1, and I am too accustomed to it to try to translate 1.whatever to 2.1.1.
  52.  
  53. -- Venk Reddy --
  54.  
  55. PS: This book explains that resource file in Rsedit that Thomas above explained
  56.  
  57. PPS: Does anyone know if this book/when this book will have a second edition for the second volume? Thanks in advance...
  58.