Important: The information in this document is obsolete and should not be used for new development.
CommentSpec
If you specify therecordComments
constant in theverb
parameter to theGetPictInfo
function (described on page 7-46) or theNewPictInfo
function (described on page 7-52), you receive aPictInfo
record (described beginning on page 7-31) that includes in itscommentHandle
field a handle to an array ofCommentSpec
records. TheuniqueComments
field of thePictInfo
record indicates the number ofCommentSpec
records in this array.The
CommentSpec
record 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
GetPictInfo
function or in all the pictures examined with theNewPictInfo
function.ID
- The value set in the
kind
parameter when the picture comment was created with thePicComment
procedure. ThePicComment
procedure is described on page 7-39. The values of many common IDs are listed in Appendix B in this book.CommentSpec
record, you should use theDisposeHandle
procedure (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
CommentSpec
record.