[comp.sys.next] Draw 2.0 hand icon

mcohen@speech-sun.ntt.JP (USR2-Group) (04/15/91)

Not to detract from the resounding praise due Paul Hegarty for Draw,
but did anyone but me miss the (Draw 1.0) hand icon for moving objects
in Draw 2.0?  Here's a fix:

Copy the hand icon from a 1.0 icon suitcase and paste into the 2.0
project's icon suitcase.  Be sure to refresh the icon's name ("hand").
Also add it to the list of tiff files in the project (using the
Project [Files] Inspector), copying the actual tiff file.

Make the following changes to GraphicView.m:

95,96d94
< static id HandCursor = nil;
< 
364,366c362
< {   
<     id anImage;       /* used to create cursors */
<       
---
> {
378,384d373
<     if (!HandCursor) {
<       NXPoint spot;
<       anImage = [NXImage findImageNamed:"hand.tiff"];
<       HandCursor = [[NXCursor alloc] initFromImage:anImage];
<       spot.x = 7.0; spot.y = 7.0;
<       [HandCursor setHotSpot:&spot];
<     }
719,720c708,709
<     [HandCursor push];
<     
---
>     PShidecursor();
> 
793,794c782,783
<     [HandCursor push];
<     
---
>     PSshowcursor();
> 

BTW, the basically cosmetic (and unrelated to above) error messages
objc: class `selecttool' not linked into application
which appear in the console if Draw is invoked from the browser
can be fixed by the following change to DrawApp.m:

796,797c796
<       if (className && NXOrderStrings((unsigned char *)className, (unsigned char *)"selecttool",
<                                       YES, -1, NULL)) {
---
>       if (className) {

(Note: The CfuncSummary documentation of NXOrderStrings is munged.)