protoDrawTool
This proto provides the basic functionality of a tool template. You must override theclass
,icon
, *MakeObject
, and *SetAttribute
slots.slot description
The methods of *
class
- Symbol that uniquely identifies the tool and the graphic objects created by this tool. This symbol should include your developer signature.
icon
- Pix family that represents this tool in the toolbar. Note that the tool border is drawn for you--this image should supply only the interior bits.
createByTapping
- The value
true
specifies that the user can tap to create an object. The default value isnil
.createByDragging
- The value
true
specifies that the user can drag out bounds for an object. That is, the first tap specifies thetop
andleft
slots of the object's bounds, and where the pen is lifted specifies theright
andbottom
slots. The default value istrue
.dragARectangle
- The value
true
specifies that the user drags out a plain rectangle when creating an object. If the value of this slot isnil
, the template's *MakeDragObject
method is invoked. The default value istrue
.protoDrawTool
are described in the following sections.
![]()
![]()
![]()
![]()
© Apple Computer, Inc.
26 APR 1997Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help