Ignore:
Timestamp:
Jul 13, 2009, 9:45:58 PM (10 years ago)
Author:
gb
Message:

Don't depend on #$NIL returning NIL.

Location:
trunk/source/examples/cocoa/easygui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/examples/cocoa/easygui/dialogs.lisp

    r11899 r12405  
    3333                           ;; If not NIL below then an ObjC array containing NSStrings could be used
    3434                           ;; to restrict the file types we're interested in
    35                            #$NIL)))
     35                           nil)))
    3636          ;; Because we told the panel to disallow multiple selection,
    3737          ;; there should be exactly one object in this array, an
  • trunk/source/examples/cocoa/easygui/views.lisp

    r12153 r12405  
    600600                                     #$NSTrackingInVisibleRect)
    601601                    :owner cocoaview
    602                     :userInfo #$NIL)))
     602                    :userInfo nil)))
    603603        (dcc (#/addTrackingArea: cocoaview area))))
    604604    |#
     
    15311531         (mouselocation (dcc (#/mouseLocationOutsideOfEventStream w)))
    15321532         (cview (if (typep view 'window) (content-view view) view))
    1533          (nspt (dcc (#/convertPoint:fromView: (cocoa-ref cview) mouselocation #$NIL))))
     1533         (nspt (dcc (#/convertPoint:fromView: (cocoa-ref cview) mouselocation nil))))
    15341534    ;; todo: check point is inside bounds, lest negative coords
    15351535    (point (ns:ns-point-x nspt) (ns:ns-point-y nspt))))
Note: See TracChangeset for help on using the changeset viewer.