Changeset 14223


Ignore:
Timestamp:
Aug 29, 2010, 6:30:02 PM (9 years ago)
Author:
arthur
Message:

Fix issue in MacOS10.6 of menu-items not handling selectedCell

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/examples/cocoa/easygui/action-targets.lisp

    r14219 r14223  
    1010
    1111(objc:defmethod (#/activateAction :void) ((self generic-easygui-target))
    12   (let* ((cell (#/selectedCell (target-shooter self)))
    13          (responds (#/respondsToSelector: cell (@selector #/mouseDownFlags)))
     12  (let* ((sender (target-shooter self))
     13         (cell (and (#/respondsToSelector: sender (@selector #/selectedCell))
     14                    (#/selectedCell sender)))
     15         (responds (and cell (#/respondsToSelector: cell (@selector #/mouseDownFlags))))
    1416         (*modifier-key-pattern* (if responds (#/mouseDownFlags cell) 0)))
    1517    (funcall (target-handler self))))
Note: See TracChangeset for help on using the changeset viewer.