Custom NSCell selection and click issues

  • Greetings,

    I have built a custom NSCell that displays the isCompleted and title
    of the CalTask items on a user's Mac.  I've got two issues with the
    cell that i can't seem to figure out.

    1. When a user selects one of the rows, the shadow on a row one or two
    above will disappear.  It look's like its being overdrawn, but I'm not
    sure where it's causing it.

    2. Selecting the checkbox is not as reliable as I would like.  I am
    determining if the user clicks the cell, by grabbing an NSPoint of the
    selection and seeing if it is in the checkbox's rect.  It usually
    registers a click every other selection.

    I've uploaded a small sample project with the custom cell that should
    show the behaviors.

    http://secondgearllc.com/attachments/taskcell.zip

    Any help would be appreciate.

    Thanks!

    --
    -
    Justin Williams
    <justin...>
    work: http://www.secondgearllc.com/
    play: http://www.carpeaqua.com
previous month march 2008 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today
MindNode
MindNode offered a free license !