Important: The information in this document is obsolete and should not be used for new development.
CommentSpec
If you specify therecordCommentsconstant in theverbparameter to theGetPictInfofunction (described on page 7-46) or theNewPictInfofunction (described on page 7-52), you receive aPictInforecord (described beginning on page 7-31) that includes in itscommentHandlefield a handle to an array ofCommentSpecrecords. TheuniqueCommentsfield of thePictInforecord indicates the number ofCommentSpecrecords in this array.The
CommentSpecrecord is defined as follows:
TYPE CommentSpec = {comment specification record} RECORD count: Integer; {number of times this type of comment } { occurs in the picture or survey} ID: Integer; {value identifying this type of comment} END;When you are finished using the information returned in a
Field Description
count- The number of times this kind of picture comment occurs in the picture specified to the
GetPictInfofunction or in all the pictures examined with theNewPictInfofunction.ID- The value set in the
kindparameter when the picture comment was created with thePicCommentprocedure. ThePicCommentprocedure is described on page 7-39. The values of many common IDs are listed in Appendix B in this book.CommentSpecrecord, you should use theDisposeHandleprocedure (described in Inside Macintosh: Memory) to dispose of the memory allocated to it.Listing 7-12 on page 7-24 illustrates how to count the number of picture comments by examining a
CommentSpecrecord.