title: Changing NSCursor for a specific view
body: <p>I'm trying to change the cursor when it passes over a view but I guess I am not coding it correctly as it is not working. </p>
  
  <p>I have an appcontroller class and in it's .m file I have this</p>
  
  <pre><code>- (void) awakeFromNib { 
  
        //set up the cursors
        NSCursor * handCursor = [NSCursor closedHandCursor];
  
        //make a box
        Box* newBox = [[Box alloc] initWithFrame:NSMakeRect(10.0, 10.0, 100.0, 100.0)];
        //set up the rect for the cursor change
        NSRect rectForCursor = [newBox frame];
        [newBox addCursorRect:rectForCursor cursor:handCursor];
        //add box to main win
        [[mainWin contentView] addSubview:newBox];
  }
  </code></pre>