Changeset 6718


Ignore:
Timestamp:
Jun 12, 2007, 4:23:38 PM (17 years ago)
Author:
Gary Byers
Message:

#/validateMenuItem: define on hemlock-text-view, not hemlock-editor document.
Don't enable hyperspec lookup unless *hyperspec-root-url* is set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ide-1.0/ccl/examples/cocoa-editor.lisp

    r6709 r6718  
    17781778
    17791779(objc:defmethod (#/validateMenuItem: :<BOOL>)
    1780     ((self hemlock-editor-document) item)
     1780    ((self hemlock-text-view) item)
    17811781  (let* ((action (#/action item)))
    1782     (#_NSLog #@"action = %s" :address action)
     1782    #+debug (#_NSLog #@"action = %s" :address action)
    17831783    (if (eql action (@selector #/hyperSpecLookUp:))
    17841784      ;;; For now, demand a selection.
    1785       (not (eql 0 (ns:ns-range-length (#/selectedRange self))))
     1785      (and *hyperspec-root-url*
     1786           (not (eql 0 (ns:ns-range-length (#/selectedRange self)))))
    17861787      (call-next-method item))))
    17871788
Note: See TracChangeset for help on using the changeset viewer.